git://git.onelab.eu
/
tests.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
run lxc-enter-namespace with --noseclabel
[tests.git]
/
system
/
tcptest.py
diff --git
a/system/tcptest.py
b/system/tcptest.py
index
5aa7b37
..
abdc6fb
100755
(executable)
--- a/
system/tcptest.py
+++ b/
system/tcptest.py
@@
-3,6
+3,14
@@
# Thierry Parmentelat <thierry.parmentelat@inria.fr>
# Copyright (C) 2010 INRIA
#
# Thierry Parmentelat <thierry.parmentelat@inria.fr>
# Copyright (C) 2010 INRIA
#
+
+# this is a small and simple standalone utility
+# designed to run in slice-space
+# we keep this in python2 for now until python3
+# can be taken for granted in sliceimage
+
+from __future__ import print_function
+
import sys
import time
import subprocess
import sys
import time
import subprocess
@@
-11,8
+19,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()))