From b0487751c30b14d490a13719c189921549869ddf Mon Sep 17 00:00:00 2001 From: tomas Date: Tue, 30 Oct 2012 13:10:24 +0100 Subject: string identity is string itself --- blinker/_utilities.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- cgit v1.2.1