this repo has no description

firehose_manager.py: use implicit cursor

Changed files
+1 -2
+1 -2
firehose_manager.py
···
self.logger = logging.getLogger('feeds.firehose')
def get_sequence_number(self):
-
cur = self.db_cnx.execute("select * from firehose where key = 'seq'")
-
row = cur.fetchone()
+
row = self.db_cnx.execute("select * from firehose where key = 'seq'").fetchone()
if row is None:
return None
(key, value) = row