diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-04-11 17:03:55 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-04-11 17:34:11 -0700 |
commit | d39ab776e7ceaefc8361150151cf0892dcb70d9c (patch) | |
tree | 603dad748ff3fcbf9a5ff39b5c692f6455fbf5e3 /lib/bb/persist_data.py | |
parent | b3b314aade1f0a04e888361e1ac946e5195e1509 (diff) | |
download | bitbake-contrib-d39ab776e7ceaefc8361150151cf0892dcb70d9c.tar.gz |
Apply some 2to3 transforms that don't cause issues in 2.6
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/persist_data.py')
-rw-r--r-- | lib/bb/persist_data.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/persist_data.py b/lib/bb/persist_data.py index a26244510..80ddeb556 100644 --- a/lib/bb/persist_data.py +++ b/lib/bb/persist_data.py @@ -52,7 +52,7 @@ class PersistData: except OSError: bb.utils.mkdirhier(self.cachedir) - self.cachefile = os.path.join(self.cachedir,"bb_persist_data.sqlite3") + self.cachefile = os.path.join(self.cachedir, "bb_persist_data.sqlite3") bb.msg.debug(1, bb.msg.domain.PersistData, "Using '%s' as the persistent data cache" % self.cachefile) self.connection = sqlite3.connect(self.cachefile, timeout=5, isolation_level=None) @@ -113,7 +113,7 @@ class PersistData: try: self.connection.execute(*query) return - except sqlite3.OperationalError, e: + except sqlite3.OperationalError as e: if 'database is locked' in str(e): continue raise |