summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--blinker/_utilities.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/blinker/_utilities.py b/blinker/_utilities.py
index 940275d..076f2e8 100644
--- a/blinker/_utilities.py
+++ b/blinker/_utilities.py
@@ -107,6 +107,8 @@ class symbol(object):
def hashable_identity(obj):
if hasattr(obj, 'im_func'):
return (id(obj.im_func), id(obj.im_self))
+ elif isinstance(obj, basestring):
+ return obj
else:
return id(obj)