diff options
author | John (J5) Palmieri <quinticent@phuket.(none)> | 2006-10-03 21:06:48 (GMT) |
---|---|---|
committer | John (J5) Palmieri <quinticent@phuket.(none)> | 2006-10-03 21:06:48 (GMT) |
commit | 6f337e0b14f022e942c723ddcad89279f727a099 (patch) | |
tree | 23436f0a6f5860e96226453907ecd2bf6dc0d9cb /sugar/util.py | |
parent | 7c342e75bf0cd3a1e1a208568cf14f7d013bf8c8 (diff) |
Changed all type checking to use isinstance
Diffstat (limited to 'sugar/util.py')
-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 1584fd8..e664e3b 100644 --- a/sugar/util.py +++ b/sugar/util.py @@ -43,7 +43,7 @@ def is_hex(s): def validate_activity_id(actid): """Validate an activity ID.""" - if type(actid) != type("") and type(actid) != type(u""): + if not isinstance(actid, str) and not isinstance(actid, unicode): return False if len(actid) != ACTIVITY_ID_LEN: return False |