summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6511cce)
raw | patch | inline | side by side (parent: 6511cce)
author | Fredrik Kuivinen <freku045@student.liu.se> | |
Tue, 13 Sep 2005 21:41:39 +0000 (23:41 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 13 Sep 2005 22:45:26 +0000 (15:45 -0700) |
Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitMergeCommon.py | patch | blob | history |
diff --git a/gitMergeCommon.py b/gitMergeCommon.py
index ce9694b15ebe131fea9536dc7b2a0f04d9ceca02..3af4fbd1539dd9979575c71d3e9a5e37ac3b0868 100644 (file)
--- a/gitMergeCommon.py
+++ b/gitMergeCommon.py
import sys, re, os, traceback
from sets import Set
+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')
+
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)
+ die('Python version 2.4 required, found', \
+ str(sys.version_info[0])+'.'+str(sys.version_info[1])+'.'+ \
+ str(sys.version_info[2]))
import subprocess
-def die(*args):
- printList(args, sys.stderr)
- sys.exit(2)
-
# Debugging machinery
# -------------------
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
# -----------------