diff options
Diffstat (limited to 'src/engine/SCons/SConsign.py')
-rw-r--r-- | src/engine/SCons/SConsign.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/SCons/SConsign.py b/src/engine/SCons/SConsign.py index a87eeeb..bd32278 100644 --- a/src/engine/SCons/SConsign.py +++ b/src/engine/SCons/SConsign.py @@ -202,7 +202,7 @@ class DB(Base): else: try: self.entries = cPickle.loads(rawentries) - if type(self.entries) is not type({}): + if not isinstance(self.entries, dict): self.entries = {} raise TypeError except KeyboardInterrupt: @@ -261,7 +261,7 @@ class Dir(Base): return self.entries = cPickle.load(fp) - if type(self.entries) is not type({}): + if not isinstance(self.entries, dict): self.entries = {} raise TypeError |