From: Bruce Momjian Date: Thu, 18 Apr 2002 03:38:30 +0000 (+0000) Subject: Back out python change, needs delay. X-Git-Tag: REL7_3~1688 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=a770da9d8df08d53c3b74a163940e40053210f7e;p=users%2Fc2main%2Fpostgres.git Back out python change, needs delay. --- diff --git a/src/interfaces/python/pgdb.py b/src/interfaces/python/pgdb.py index 0edad8a7bb..2772809b4e 100644 --- a/src/interfaces/python/pgdb.py +++ b/src/interfaces/python/pgdb.py @@ -337,7 +337,7 @@ class pgdbCnx: ### module interface # connects to a database -def connect(dsn = None, user = None, password = None, xhost = None, database = None): +def connect(dsn = None, user = None, password = None, host = None, database = None): # first get params from DSN dbport = -1 dbhost = "" @@ -364,9 +364,9 @@ def connect(dsn = None, user = None, password = None, xhost = None, database = N dbpasswd = password if database != None: dbbase = database - if xhost != None: + if host != None: try: - params = string.split(xhost, ":") + params = string.split(host, ":") dbhost = params[0] dbport = int(params[1]) except: