[PATCH] Documentation: Add asciidoc.conf file and gitlink: macro
[gitweb.git] / gitMergeCommon.py
index ce9694b15ebe131fea9536dc7b2a0f04d9ceca02..7e8855c617ac3391a698e61023d9ca465b4b295e 100644 (file)
@@ -1,19 +1,18 @@
 import sys, re, os, traceback
 from sets import Set
 
-if sys.version_info[0] < 2 or \
-       (sys.version_info[0] == 2 and sys.version_info[1] < 4):
-    print 'Python version 2.4 required, found', \
-          str(sys.version_info[0])+'.'+str(sys.version_info[1])+'.'+ \
-          str(sys.version_info[2])
-    sys.exit(1)
-
-import subprocess
-
 def die(*args):
     printList(args, sys.stderr)
     sys.exit(2)
 
+def printList(list, file=sys.stdout):
+    for x in list:
+        file.write(str(x))
+        file.write(' ')
+    file.write('\n')
+
+import subprocess
+
 # Debugging machinery
 # -------------------
 
@@ -32,12 +31,6 @@ def debug(*args):
         if funcName in functionsToDebug:
             printList(args)
 
-def printList(list, file=sys.stdout):
-    for x in list:
-        file.write(str(x))
-        file.write(' ')
-    file.write('\n')
-
 # Program execution
 # -----------------