Explorar el Código

refuse to run with python < 2.5.0

Matthew Wang hace 12 años
padre
commit
c8734e4e35
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5
    0
      src/cdiff.py

+ 5
- 0
src/cdiff.py Ver fichero

9
 """
9
 """
10
 
10
 
11
 import sys
11
 import sys
12
+
13
+if sys.hexversion < 0x02050000:
14
+    sys.stderr.write("ERROR: requires python >= 2.5.0\n")
15
+    sys.exit(1)
16
+
12
 import os
17
 import os
13
 import re
18
 import re
14
 import difflib
19
 import difflib