Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/services/presence/BuddyIconCache.py
diff options
context:
space:
mode:
authorJohn (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)
commit6f337e0b14f022e942c723ddcad89279f727a099 (patch)
tree23436f0a6f5860e96226453907ecd2bf6dc0d9cb /services/presence/BuddyIconCache.py
parent7c342e75bf0cd3a1e1a208568cf14f7d013bf8c8 (diff)
Changed all type checking to use isinstance
Diffstat (limited to 'services/presence/BuddyIconCache.py')
-rw-r--r--services/presence/BuddyIconCache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/presence/BuddyIconCache.py b/services/presence/BuddyIconCache.py
index 59d5e88..d1bec70 100644
--- a/services/presence/BuddyIconCache.py
+++ b/services/presence/BuddyIconCache.py
@@ -31,7 +31,7 @@ class BuddyIconCache(object):
return data
def get_icon(self, printable_hash):
- if type(printable_hash) != type(u""):
+ if not isinstance(printable_hash, unicode):
raise RuntimeError("printable_hash must be a unicode string.")
try:
fname = self._cache[printable_hash]