Skip to content

Commit

Permalink
Fix comparison against string
Browse files Browse the repository at this point in the history
For issue zhemao#8
  • Loading branch information
jimrthy committed Sep 29, 2015
1 parent 313db6a commit 2329430
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions funktown/dictionary.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ def __eq__(self, other):
if not hasattr(other, '__getitem__'):
return False

if isinstance(other, basestring):
return False

if len(self) != len(other):
return False

Expand Down

0 comments on commit 2329430

Please sign in to comment.