From: Johannes Heckel Date: Tue, 22 Mar 2011 17:36:41 +0000 (+0000) Subject: Fixed bug in livetest.py that caused configs with a port number to fail. X-Git-Tag: 0.8~34^2~22 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=887cee16ce0c8c49ca923ab78fc54ff7fdf64c02;p=imapclient.git Fixed bug in livetest.py that caused configs with a port number to fail. A trailing comma was causing a tuple to be returned instead of an integer when the port number was parsed from the config file. --- diff --git a/livetest.py b/livetest.py index c5d2450..f7a3d70 100755 --- a/livetest.py +++ b/livetest.py @@ -473,7 +473,7 @@ def parse_config_file(path): assert parser.sections() == [section], 'Only expected a [main] section' try: - port = parser.getint(section, 'port'), + port = parser.getint(section, 'port') except NoOptionError: port = None