scripts: migrate shebangs and version checks to Python 3

This commit is contained in:
James Lu 2020-01-05 11:29:41 -08:00
parent 9e03e0e6e2
commit 7e70ce43f2
8 changed files with 14 additions and 14 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
###
# Copyright (c) 2003-2004, Jeremiah Fincher
@ -48,8 +48,8 @@ if sys.version_info[0] < 3:
else:
from io import StringIO
if sys.version_info < (2, 6, 0):
sys.stderr.write('This program requires Python >= 2.6.0')
if sys.version_info < (3, 4, 0):
sys.stderr.write('This program requires Python 3.4 or later.')
sys.stderr.write(os.linesep)
sys.exit(-1)

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
###
# Copyright (c) 2002-2004, Jeremiah Fincher

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
###
# Copyright (c) 2005, Jeremiah Fincher

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
###
# Copyright (c) 2002-2005, Jeremiah Fincher
@ -45,8 +45,8 @@ def error(s):
sys.stderr.write(os.linesep)
sys.exit(-1)
if sys.version_info < (2, 6, 0):
error('This script requires Python 2.6 or newer.')
if sys.version_info < (3, 4, 0):
error('This script requires Python 3.4 or newer.')
import supybot.conf as conf
from supybot.questions import *

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
###
# Copyright (c) 2005, Ali Afshar

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
###
# Copyright (c) 2002-2004, Jeremiah Fincher

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
###
# Copyright (c) 2002-2005, Jeremiah Fincher

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
###
# Copyright (c) 2003-2004, Jeremiah Fincher
@ -41,8 +41,8 @@ def error(s):
sys.stderr.write(os.linesep)
sys.exit(-1)
if sys.version_info < (2, 6, 0):
error('This program requires Python >= 2.6.0')
if sys.version_info < (3, 4, 0):
error('This program requires Python 3.4 or later.')
import supybot