From: Magnus Hagander Date: Thu, 13 Jun 2013 11:50:31 +0000 (+0200) Subject: Avoid using global variable that wasn't intended to be global X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=b9d92fb8467a0b383b7c7b8a19c163c8e5567268;p=hamn.git Avoid using global variable that wasn't intended to be global --- diff --git a/synctwitter.py b/synctwitter.py index 230f877..206e94e 100755 --- a/synctwitter.py +++ b/synctwitter.py @@ -18,7 +18,7 @@ class SyncTwitter(TwitterClient): TwitterClient.__init__(self, cfg) psycopg2.extensions.register_type(psycopg2.extensions.UNICODE) - self.db = psycopg2.connect(c.get('planet','db')) + self.db = psycopg2.connect(cfg.get('planet','db')) def Run(self): # Get list of handles that should be on the list