From 4374b6c8108ef06b71bf4189326e193c8d544e88 Mon Sep 17 00:00:00 2001 From: Eric Blade Date: Tue, 15 Sep 2009 18:49:34 -0500 Subject: [PATCH] remove Database:__init__ parameters for db_name and game, as there was a comment right next to them # db_name and game not used anymore --- pyfpdb/Database.py | 2 +- pyfpdb/HUD_main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyfpdb/Database.py b/pyfpdb/Database.py index f4de8169..de71da0c 100755 --- a/pyfpdb/Database.py +++ b/pyfpdb/Database.py @@ -181,7 +181,7 @@ class Database: # create index indexname on tablename (col); - def __init__(self, c, db_name = None, game = None, sql = None): # db_name and game not used any more + def __init__(self, c, sql = None): log.info("Creating Database instance, sql = %s" % sql) self.fdb = fpdb_db.fpdb_db() # sets self.fdb.db self.fdb.cursor and self.fdb.sql self.fdb.do_connect(c) diff --git a/pyfpdb/HUD_main.py b/pyfpdb/HUD_main.py index ecc96429..b1164b26 100755 --- a/pyfpdb/HUD_main.py +++ b/pyfpdb/HUD_main.py @@ -160,7 +160,7 @@ class HUD_main(object): # be passed to HUDs for use in the gui thread. HUD objects should not # need their own access to the database, but should open their own # if it is required. - self.db_connection = Database.Database(self.config, self.db_name, 'temp') + self.db_connection = Database.Database(self.config) self.db_connection.init_hud_stat_vars(hud_days) tourny_finder = re.compile('(\d+) (\d+)')