Changeset: c1ba05ee9a5e for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=c1ba05ee9a5e Modified Files: clients/python2/monetdb/mapi.py clients/python3/monetdb/mapi.py Branch: Jul2015 Log Message:
Applied patch from bug 3735. diffs (24 lines): diff --git a/clients/python2/monetdb/mapi.py b/clients/python2/monetdb/mapi.py --- a/clients/python2/monetdb/mapi.py +++ b/clients/python2/monetdb/mapi.py @@ -73,7 +73,7 @@ class Connection(object): hostname = None if not unix_socket and os.path.exists("/tmp/.s.monetdb.%i" % port): unix_socket = "/tmp/.s.monetdb.%i" % port - elif not hostname: + elif not unix_socket and not hostname: hostname = 'localhost' self.hostname = hostname diff --git a/clients/python3/monetdb/mapi.py b/clients/python3/monetdb/mapi.py --- a/clients/python3/monetdb/mapi.py +++ b/clients/python3/monetdb/mapi.py @@ -74,7 +74,7 @@ class Connection(object): hostname = None if not unix_socket and os.path.exists("/tmp/.s.monetdb.%i" % port): unix_socket = "/tmp/.s.monetdb.%i" % port - elif not hostname: + elif not unix_socket and not hostname: hostname = 'localhost' self.hostname = hostname _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list