Switch to Python3

This commit is contained in:
Alberth
2018-07-31 16:38:51 +02:00
parent 12d7745709
commit c5bf80fbfb
4 changed files with 5 additions and 5 deletions

View File

@@ -43,9 +43,9 @@ script:
# Check if there are trailing whitespaces.
- ${TRAVIS_BUILD_DIR}/scripts/check_trailing_whitespaces.py $TRAVIS_BUILD_DIR
# Check for incorrectly encoded language files.
- python ${TRAVIS_BUILD_DIR}/scripts/check_language_files_not_BOM.py $TRAVIS_BUILD_DIR/CorsixTH/Lua/languages
- ${TRAVIS_BUILD_DIR}/scripts/check_language_files_not_BOM.py $TRAVIS_BUILD_DIR/CorsixTH/Lua/languages
# Check if there are lua classes with invalid/improper declarations.
- python ${TRAVIS_BUILD_DIR}/scripts/check_lua_classes.py
- ${TRAVIS_BUILD_DIR}/scripts/check_lua_classes.py
# Build CorsixTH
- make VERBOSE=1
# Validate lua files

2
scripts/check_language_files_not_BOM.py Normal file → Executable file
View File

@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python3
"""
Usage: check_language_files_not_BOM.py [root]

2
scripts/check_lua_classes.py Normal file → Executable file
View File

@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python3
import os
import re

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python3
"""
Usage: check_trailing_whitespaces.py [root]