[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] use isinstance



Signed-off-by: Mark Hymers <mhy@debian.org>
---
 daklib/changes.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/daklib/changes.py b/daklib/changes.py
index 59c7da1..6c0be14 100755
--- a/daklib/changes.py
+++ b/daklib/changes.py
@@ -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
-- 
1.6.3.3


Reply to: