contrib/debugcmdserver.py
changeset 28353 cd03fbd5ab57
parent 16687 e34106fa0dc3
child 43076 2372284d9457
--- a/contrib/debugcmdserver.py	Sun Mar 06 03:01:46 2016 +0530
+++ b/contrib/debugcmdserver.py	Sun Mar 06 03:06:09 2016 +0530
@@ -7,10 +7,12 @@
 # $ ./hg serve --cmds pipe | ./contrib/debugcmdserver.py -
 # o, 52   -> 'capabilities: getencoding runcommand\nencoding: UTF-8'
 
-import sys, struct
+from __future__ import absolute_import, print_function
+import struct
+import sys
 
 if len(sys.argv) != 2:
-    print 'usage: debugcmdserver.py FILE'
+    print('usage: debugcmdserver.py FILE')
     sys.exit(1)
 
 outputfmt = '>cI'