diff options
author | Dan Williams <dcbw@redhat.com> | 2006-06-15 21:03:43 (GMT) |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2006-06-15 21:03:43 (GMT) |
commit | a03f850ce8c61963a1cd8e888d4efceb80b3dbe6 (patch) | |
tree | a451026d95c7ff6d6b61b45397522f4e48fe84a6 /sugar | |
parent | 465c49179cc346f217d6e74e7f6e6796a7ce9add (diff) |
Accept unicode types too
Diffstat (limited to 'sugar')
-rw-r--r-- | sugar/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sugar/util.py b/sugar/util.py index 63be2ac..4f83751 100644 --- a/sugar/util.py +++ b/sugar/util.py @@ -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 |