equal
deleted
inserted
replaced
64 python3 --version |
64 python3 --version |
65 |
65 |
66 # remove compiled Python files |
66 # remove compiled Python files |
67 find . -name '*.pyc' -exec rm -f {} \; |
67 find . -name '*.pyc' -exec rm -f {} \; |
68 |
68 |
69 for i in $py_files; do |
69 for i in $py3_files; do |
70 # echo $i |
70 # echo $i |
71 python3 -m py_compile $i |
71 python3 -m py_compile $i |
72 if [ $? -ne 0 ]; then |
72 if [ $? -ne 0 ]; then |
73 echo "Syntax error in $i" |
73 echo "Syntax error in $i" |
74 set_exit_error |
74 set_exit_error |
442 fi |
442 fi |
443 if [ -z "$py_files" ]; then |
443 if [ -z "$py_files" ]; then |
444 echo "No files to check" |
444 echo "No files to check" |
445 exit 0; |
445 exit 0; |
446 fi |
446 fi |
|
447 |
|
448 py3_files=$(echo $py_files | sed 's/ [a-Z\/\.]*pyjslib.py//') |
447 } |
449 } |
448 |
450 |
449 |
451 |
450 print_help() |
452 print_help() |
451 { |
453 { |