Skip to content
Browse files

support any kind of string here

  • Loading branch information...
1 parent 151ffcd commit 4e7774c32ff25c69a0d6ad0a18cf9329d95efb44 @rays rays committed Nov 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 hiiguid/__init__.py
View
2 hiiguid/__init__.py
@@ -26,7 +26,7 @@ def __new__(cls, value=time.time()):
UUID4 integer. In the event of a string it attempts to decode a
packed struct string or base36 string.
"""
- if isinstance(value, str):
+ if isinstance(value, basestring):
if len(value) == 20:
value = _unpack(value)
else:

0 comments on commit 4e7774c

Please sign in to comment.
Something went wrong with that request. Please try again.