From: Thierry Parmentelat Date: Wed, 18 Mar 2015 16:27:02 +0000 (+0100) Subject: SyntaxError: from __future__ imports must occur at the beginning of the file X-Git-Tag: tests-6.0-1~9 X-Git-Url: http://git.onelab.eu/?p=tests.git;a=commitdiff_plain;h=2c40c38256132139aec5155504226166eae34b1d SyntaxError: from __future__ imports must occur at the beginning of the file --- diff --git a/system/tcptest.py b/system/tcptest.py index 5aa7b37..e5ff92e 100755 --- a/system/tcptest.py +++ b/system/tcptest.py @@ -3,6 +3,9 @@ # Thierry Parmentelat # Copyright (C) 2010 INRIA # + +from __future__ import print_function + import sys import time import subprocess @@ -11,8 +14,6 @@ import SocketServer import threading from optparse import OptionParser -from __future__ import print_function - def myprint(message, id='client'): now = time.strftime("%H:%M:%S", time.localtime()) print("* {now} ({id}) -- {message}".format(**locals()))