segfaulthunter / pypentago-mainline

pypentago is an open source effort to recreate the board-game Pentago using Python.

Changed (Δ12 bytes):

Up to file-list src/pypentago/client/interface/server.py:

@@ -453,7 +453,7 @@ class ServerBrowser(QtGui.QWidget):
453
453
        config = conf.possible_configs('client.ini').next()
454
454
        parser = ConfigParser()
455
455
        parser.read(config)
456
456
        
457
457
        for section in parser.sections():
458
458
            if section not in ['client', 'servers']:
459
459
                parser.remove_section(section)
@@ -463,8 +463,8 @@ class ServerBrowser(QtGui.QWidget):
463
463
        
464
464
        with open(config, 'w') as fp:
465
465
            parser.write(fp)
466
            
467
        
466
467
468
468
if __name__ == '__main__':
469
469
    config = ConfigParser()
470
470
    config.read(conf.possible_configs('client.ini'))