From a770da9d8df08d53c3b74a163940e40053210f7e Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 18 Apr 2002 03:38:30 +0000 Subject: [PATCH] Back out python change, needs delay. --- src/interfaces/python/pgdb.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: