diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-06-20 12:08:07 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-02 15:41:37 +0100 |
commit | ef1de9ecaf73e28234d284b79ec45e084d0f0c53 (patch) | |
tree | 417f87922c1a2fa4a3bbd4b35e0772221f96641e /bitbake/lib/bb/COW.py | |
parent | 20dc452614c991d1a4f5b7dcc1307cd03cba0c55 (diff) | |
download | openembedded-core-contrib-ef1de9ecaf73e28234d284b79ec45e084d0f0c53.tar.gz |
Apply some 2to3 refactorings
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/COW.py')
-rw-r--r-- | bitbake/lib/bb/COW.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/COW.py b/bitbake/lib/bb/COW.py index 23a2cae2b4..6917ec378a 100644 --- a/bitbake/lib/bb/COW.py +++ b/bitbake/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() |