Skip to content

Commit

Permalink
replaced deprecated ".has_key()" with "in"
Browse files Browse the repository at this point in the history
  • Loading branch information
dertyp authored and Tim Weber committed Nov 13, 2009
1 parent c1d67e5 commit f11197d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion import.py
Expand Up @@ -241,7 +241,7 @@ def __init__(self, meta):
def setTitle(self, title):
self.fulltitle = title
split = self.fulltitle.split(':', 1)
if len(split) > 1 and self.meta['meta'].nstoid.has_key(split[0]):
if len(split) > 1 and (split[0] in self.meta['meta'].nstoid):
self.nsid = self.meta['meta'].nstoid[split[0]]
self.title = split[1]
else:
Expand Down

0 comments on commit f11197d

Please sign in to comment.