Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
9d0732cf
Commit
9d0732cf
authored
Mar 10, 2011
by
Alexander Wiebel
Browse files
[CHANGE] tell the user if the python version is problematic
parent
9e3b54fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
tools/brainlint.py
tools/brainlint.py
+8
-0
No files found.
tools/brainlint.py
View file @
9d0732cf
...
...
@@ -54,6 +54,7 @@ import codecs
import
getopt
import
math
# for log
import
os
import
platform
import
re
import
sre_compile
import
string
...
...
@@ -2783,6 +2784,13 @@ def ParseArguments(args):
def
main
():
if
platform
.
python_version
()
>
"3.0.0"
:
print
(
"You use python version "
+
platform
.
python_version
()
+
"."
)
print
(
"This script is known not to work for some versions above 3.0.0."
)
print
(
"The last version known to work currently is 2.7.1."
)
sys
.
exit
(
1
);
filenames
=
ParseArguments
(
sys
.
argv
[
1
:])
# Change stderr to write with replacement characters so we don't die
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment