diff roundup/backends/sessions_dbm.py @ 6036:5eeb073e33c7

flake8 whitespace fixes, remove unused exception var.
author John Rouillard <rouilj@ieee.org>
date Fri, 03 Jan 2020 21:27:06 -0500
parents 883c9e90b403
children bef1e42be04c
line wrap: on
line diff
--- a/roundup/backends/sessions_dbm.py	Fri Jan 03 21:26:26 2020 -0500
+++ b/roundup/backends/sessions_dbm.py	Fri Jan 03 21:27:06 2020 -0500
@@ -69,7 +69,7 @@
             else:
                 if default != self._marker:
                     return default
-                raise KeyError('No such %s "%s"'%(self.name, escape(infoid)))
+                raise KeyError('No such %s "%s"' % (self.name, escape(infoid)))
             return values.get(value, None)
         finally:
             db.close()
@@ -82,7 +82,7 @@
                 del d['__timestamp']
                 return d
             except KeyError:
-                raise KeyError('No such %s "%s"'%(self.name, escape(infoid)))
+                raise KeyError('No such %s "%s"' % (self.name, escape(infoid)))
         finally:
             db.close()
 
@@ -131,12 +131,12 @@
         # open the database with the correct module
         dbm = __import__(db_type)
 
-        retries_left=15
+        retries_left = 15
         while True:
             try:
                 handle = dbm.open(path, mode)
                 break
-            except OSError as e:
+            except OSError:
                 # Primarily we want to catch and retry:
                 #   [Errno 11] Resource temporarily unavailable retry
                 # FIXME: make this more specific

Roundup Issue Tracker: http://roundup-tracker.org/