diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-06-20 12:08:07 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-06-21 08:05:12 -0700 |
commit | 219be63895b20daa646066ae52872ce90a9da1e8 (patch) | |
tree | edc4d84d6d995a899152e3058ceb589b01702d6c /lib/bb/COW.py | |
parent | 40925230781ddd550bf21d90714c5349f9240a51 (diff) | |
download | bitbake-contrib-219be63895b20daa646066ae52872ce90a9da1e8.tar.gz |
Apply some 2to3 refactorings
Diffstat (limited to 'lib/bb/COW.py')
-rw-r--r-- | lib/bb/COW.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bb/COW.py b/lib/bb/COW.py index 23a2cae2b..6917ec378 100644 --- a/lib/bb/COW.py +++ b/lib/bb/COW.py @@ -82,7 +82,7 @@ class COWDictMeta(COWMeta): print("Warning: Doing a copy because %s is a mutable type." % key, file=cls.__warn__) try: value = value.copy() - except AttributeError, e: + except AttributeError as e: value = copy.copy(value) setattr(cls, nkey, value) return value @@ -106,7 +106,7 @@ class COWDictMeta(COWMeta): raise AttributeError("key %s does not exist." % key) return value - except AttributeError, e: + except AttributeError as e: if not default is cls.__getmarker__: return default @@ -239,7 +239,7 @@ if __name__ == "__main__": try: b['dict2'] - except KeyError, e: + except KeyError as e: print("Okay!") a['set'] = COWSetBase() |