]> err.no Git - dak/commitdiff
use isinstance
authorMark Hymers <mhy@debian.org>
Tue, 27 Oct 2009 15:32:34 +0000 (15:32 +0000)
committerMark Hymers <mhy@debian.org>
Tue, 27 Oct 2009 15:32:34 +0000 (15:32 +0000)
Signed-off-by: Mark Hymers <mhy@debian.org>
daklib/changes.py

index 59c7da17d15da775e7a3e4d843f4f643e3894210..6c0be147014223f40c9c4c85cfd3910c06055fc3 100755 (executable)
@@ -191,7 +191,7 @@ class Changes(object):
         self.dsc_files.update(p.load())
 
         next_obj = p.load()
-        if type(next_obj) is DictType:
+        if isinstance(next_obj, dict):
             self.pkg.orig_files.update(next_obj)
         else:
             # Auto-convert old dak files to new format supporting