From 8b04ada1e7e30e8cb81664cf2b845115c566acb3 Mon Sep 17 00:00:00 2001 From: ng0 Date: Mon, 20 Nov 2017 10:59:38 +0000 Subject: [PATCH] 2to3 ./src/integration-tests/test_integration_disconnect.py.in --- .../test_integration_disconnect.py.in | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/integration-tests/test_integration_disconnect.py.in b/src/integration-tests/test_integration_disconnect.py.in index f2ad0ff9e..de9d67823 100755 --- a/src/integration-tests/test_integration_disconnect.py.in +++ b/src/integration-tests/test_integration_disconnect.py.in @@ -1,6 +1,6 @@ #!@PYTHON@ # This file is part of GNUnet. -# (C) 2010 Christian Grothoff (and other contributing authors) +# (C) 2010, 2017 Christian Grothoff (and other contributing authors) # # GNUnet is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published @@ -70,7 +70,7 @@ def cleanup (): def success_disconnect_cont (check): - print 'Peers disconnected successfully' + print('Peers disconnected successfully') global success success = True; @@ -78,7 +78,7 @@ def success_disconnect_cont (check): def fail_disconnect_cont (check): global success success = False; - print 'Peers failed to disconnect' + print('Peers failed to disconnect') check.evaluate(True) def check_disconnect (): @@ -95,14 +95,14 @@ def check_disconnect (): def success_connect_cont (check): - print 'Peers connected successfully' + print('Peers connected successfully') check_disconnect () def fail_connect_cont (check): global success success= False - print 'Peers failed to connected!' + print('Peers failed to connected!') check.evaluate(True) @@ -133,7 +133,7 @@ def SigHandler(signum = None, frame = None): global server global client - print 'Test was aborted!' + print('Test was aborted!') if (None != server): server.stop () if (None != client): @@ -161,7 +161,7 @@ def run (): client = Peer(test, './confs/c_no_nat_client.conf'); if (True != server.start()): - print 'Failed to start server' + print('Failed to start server') if (None != server): server.stop () cleanup () @@ -171,7 +171,7 @@ def run (): time.sleep(5) if (True != client.start()): - print 'Failed to start client' + print('Failed to start client') if (None != server): server.stop () if (None != client): @@ -197,7 +197,7 @@ def run (): try: run () except (KeyboardInterrupt, SystemExit): - print 'Test interrupted' + print('Test interrupted') server.stop () client.stop () cleanup () @@ -208,4 +208,4 @@ else: - \ No newline at end of file + -- 2.25.1