Skip to content

Commit e00017b

Browse files
committed
ISSUE-56 spylab.py throws AttributeError: 'dict' object has no attribute 'has_key'
1 parent 2650d7d commit e00017b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ build/
55
*#
66
*~
77
TAGS
8+
.project
9+
.pydevproject

spectral/graphics/spypylab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@ def __str__(self):
11261126
else:
11271127
interp = self.interpolation
11281128
s += ' {0:<20}: {1}\n'.format("Interpolation", interp)
1129-
if meta.has_key('rgb range'):
1129+
if 'rgb range' in meta:
11301130
s += ' {0:<20}:\n'.format("RGB data limits")
11311131
for (c, r) in zip('RGB', meta['rgb range']):
11321132
s += ' {0}: {1}\n'.format(c, str(r))

0 commit comments

Comments
 (0)