We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d95134c commit ede6c7eCopy full SHA for ede6c7e
test/bin/python
@@ -17,8 +17,12 @@ cat >/dev/null
17
18
# verify the python compiles at least. if this fails then the python code passed
19
# to -c failed basic syntax checks.
20
+# Compiler package ws removed in Py3
21
+# see https://www.python.org/dev/peps/pep-3108/#id53
22
+# The closest replacement is the ast package
23
+# https://docs.python.org/3/library/ast.html
24
echo "$2" |
-/usr/bin/python2.7 -c "import sys; __import__('compiler').parse(sys.stdin.read())"
25
+/usr/bin/python3 -c "import sys; __import__('ast').parse(sys.stdin.read())"
26
27
# pretend we found zero processes.
28
echo 0
0 commit comments