SyntaxError: from __future__ imports must occur at the beginning of the file
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 18 Mar 2015 16:27:02 +0000 (17:27 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 18 Mar 2015 16:27:02 +0000 (17:27 +0100)
system/tcptest.py

index 5aa7b37..e5ff92e 100755 (executable)
@@ -3,6 +3,9 @@
 # Thierry Parmentelat <thierry.parmentelat@inria.fr>
 # Copyright (C) 2010 INRIA 
 #
 # Thierry Parmentelat <thierry.parmentelat@inria.fr>
 # Copyright (C) 2010 INRIA 
 #
+
+from __future__ import print_function
+
 import sys
 import time
 import subprocess
 import sys
 import time
 import subprocess
@@ -11,8 +14,6 @@ import SocketServer
 import threading
 from optparse import OptionParser    
 
 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()))
 def myprint(message, id='client'):
     now = time.strftime("%H:%M:%S", time.localtime())
     print("* {now} ({id}) -- {message}".format(**locals()))