Skip to content

Commit a06e095

Browse files
authored
We do not want the amalgamate.py script to run *ever* if you do not have at least Python 3. (simdjson#1290)
1 parent a56149e commit a06e095

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

singleheader/amalgamate.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
import re
1111
import shutil
1212

13+
if sys.version_info < (3, 0):
14+
sys.stdout.write("Sorry, requires Python 3.x or better\n")
15+
sys.exit(1)
16+
1317
SCRIPTPATH = os.path.dirname(os.path.abspath(sys.argv[0]))
1418
PROJECTPATH = os.path.dirname(SCRIPTPATH)
1519

0 commit comments

Comments
 (0)