From 2c40c38256132139aec5155504226166eae34b1d Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 18 Mar 2015 17:27:02 +0100 Subject: [PATCH] SyntaxError: from __future__ imports must occur at the beginning of the file --- system/tcptest.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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())) -- 2.43.0