# HG changeset patch # User Andrey Skvortsov # Date 1552460531 -10800 # Node ID 0fab0af579509ea6e2af5d527abbbd814d28cf85 # Parent 47ca468ebcbeddfeba47029b02d2e60a9eec48f3 Exclude pyjslib.py from python3 syntax correction check pyjs doesn't support python3 and it's unmaintained. async is a new keyword introduced in python 3.7. ./tests/tools/check_source.sh Syntax checking using python3 ... Python 3.7.2+ Syntax error in ./runtime/Worker.py File "./svgui/pyjs/lib/pyjslib.py", line 24 def import_module(path, parent_module, module_name, dynamic=1, async=False): ^ SyntaxError: invalid syntax diff -r 47ca468ebcbe -r 0fab0af57950 tests/tools/check_source.sh --- a/tests/tools/check_source.sh Wed Mar 13 09:56:37 2019 +0300 +++ b/tests/tools/check_source.sh Wed Mar 13 10:02:11 2019 +0300 @@ -66,7 +66,7 @@ # remove compiled Python files find . -name '*.pyc' -exec rm -f {} \; - for i in $py_files; do + for i in $py3_files; do # echo $i python3 -m py_compile $i if [ $? -ne 0 ]; then @@ -444,6 +444,8 @@ echo "No files to check" exit 0; fi + + py3_files=$(echo $py_files | sed 's/ [a-Z\/\.]*pyjslib.py//') }