Skip to content

Commit 634bbd8

Browse files
committed
! update show-duplicate-java-classes : specify python3 in shebang
1 parent 0c35709 commit 634bbd8

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

bin/show-duplicate-java-classes

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# -*- coding: utf-8 -*-
33
# @Function
44
# Find duplicate class among java libs.
@@ -12,8 +12,6 @@
1212
# @author tg123 (farmer1992 at gmail dot com)
1313
# @author Jerry Lee (oldratlee at gmail dot com)
1414

15-
from __future__ import print_function
16-
1715
__author__ = 'tg123'
1816

1917
import re
@@ -29,12 +27,6 @@ from zipfile import ZipFile, BadZipfile
2927
# utils functions
3028
################################################################################
3129

32-
def check_python_version():
33-
if sys.version_info < (2, 7):
34-
exit('Using python 2 and its version lower than 2.7, not supported!\n'
35-
'Please use python 3 instead!\nPython version: ' + sys.version)
36-
37-
3830
def print_box_message(msg):
3931
print()
4032
print('=' * 80)
@@ -168,6 +160,4 @@ def main():
168160

169161

170162
if __name__ == '__main__':
171-
check_python_version()
172-
173163
exit(main())

0 commit comments

Comments
 (0)