diff options
author | tomas <tomas@drencak.com> | 2012-10-30 13:10:24 +0100 |
---|---|---|
committer | tomas <tomas@drencak.com> | 2012-10-30 13:10:24 +0100 |
commit | b0487751c30b14d490a13719c189921549869ddf (patch) | |
tree | 5ddd42917d14617ecc179552ae35c0138cef5669 | |
parent | d821f483f949d7e8fc269e1b2b4c28b454ddf956 (diff) | |
download | blinker-b0487751c30b14d490a13719c189921549869ddf.tar.gz |
string identity is string itself
-rw-r--r-- | blinker/_utilities.py | 2 |
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) |