7429: Fix bug when an empty string is used as custom type

This commit is contained in:
Nick Hall 2014-02-02 15:42:45 +00:00
parent 04d976ceee
commit 94adf0909b

View File

@ -276,8 +276,7 @@ class StandardCustomSelector(object):
instance.
"""
if isinstance(event_type, STRTYPE):
if event_type:
return (self.custom_key, event_type)
return (self.custom_key, event_type)
elif isinstance(event_type, tuple):
if event_type[1]:
return (event_type[0], event_type[1])