]> khamidou — GitHub mirrors - imapclient.git/commitdiff
Fixed bug in livetest.py that caused configs with a port number to fail.
authorJohannes Heckel <stone.pixel@gmail.com>
Tue, 22 Mar 2011 17:36:41 +0000 (17:36 +0000)
committerJohannes Heckel <stone.pixel@gmail.com>
Tue, 22 Mar 2011 17:36:41 +0000 (17:36 +0000)
A trailing comma was causing a tuple to be returned instead of an integer when
the port number was parsed from the config file.

livetest.py

index c5d245044c97a74f32c76a6daebd8f04e39536e0..f7a3d704ce17d0c8f46068ee2a7187c4f1c54645 100755 (executable)
@@ -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