Accept unicode types too

This commit is contained in:
Dan Williams 2006-06-15 17:03:43 -04:00
parent 465c49179c
commit a03f850ce8

View File

@ -29,7 +29,7 @@ def is_hex(s):
def validate_activity_uid(uid):
"""Validate an activity UID."""
if type(uid) != type(""):
if type(uid) != type("") and type(uid) != type(u""):
return False
if len(uid) != ACTIVITY_UID_LEN:
return False