From: Mark Hymers Date: Tue, 27 Oct 2009 15:32:34 +0000 (+0000) Subject: use isinstance X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bb2307cd0c04e14ab7e414b5cdfbb5b2a6d0b46;p=dak use isinstance Signed-off-by: Mark Hymers --- diff --git a/daklib/changes.py b/daklib/changes.py index 59c7da17..6c0be147 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