4363: Accept unicode class, not just unicode type. 4551-utf-8
authorTom Clegg <tom@curoverse.com>
Mon, 17 Nov 2014 16:04:54 +0000 (11:04 -0500)
committerTom Clegg <tom@curoverse.com>
Mon, 17 Nov 2014 16:04:54 +0000 (11:04 -0500)
sdk/python/arvados/collection.py

index 0fe7b3ee9ef448f7768af1983d3d3b67aae20e3c..fee6059c4ae9c84ec2db32adeb7906deea481869 100644 (file)
@@ -186,7 +186,7 @@ class CollectionReader(CollectionBase):
                     self._manifest_locator,
                     error_via_api,
                     error_via_keep))
-        if type(self._manifest_text) == unicode:
+        if isinstance(self._manifest_text, unicode):
             unicode_manifest = self._manifest_text
         else:
             unicode_manifest = self._manifest_text.decode('utf-8')