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 792faa5 commit d7d3d7bCopy full SHA for d7d3d7b
bin/show-duplicate-java-classes
@@ -14,6 +14,7 @@
14
15
__author__ = 'tg123'
16
17
+import sys
18
from glob import glob
19
from os import walk
20
from zipfile import ZipFile
@@ -115,5 +116,15 @@ def main():
115
116
exit(1)
117
118
119
+def check_python_version():
120
+ python_version = sys.version_info
121
+ if python_version.major > 2:
122
+ return
123
+ if python_version.minor < 7:
124
+ exit('Using python 2 and its version lower than 2.7, not support!\n'
125
+ 'Please use python 3 instead!\nPython version: ' + sys.version)
126
+
127
128
if __name__ == '__main__':
129
+ check_python_version()
130
main()
0 commit comments