mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 12:49:24 +01:00
scripts: migrate shebangs and version checks to Python 3
This commit is contained in:
parent
9e03e0e6e2
commit
7e70ce43f2
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
###
|
###
|
||||||
# Copyright (c) 2003-2004, Jeremiah Fincher
|
# Copyright (c) 2003-2004, Jeremiah Fincher
|
||||||
@ -48,8 +48,8 @@ if sys.version_info[0] < 3:
|
|||||||
else:
|
else:
|
||||||
from io import StringIO
|
from io import StringIO
|
||||||
|
|
||||||
if sys.version_info < (2, 6, 0):
|
if sys.version_info < (3, 4, 0):
|
||||||
sys.stderr.write('This program requires Python >= 2.6.0')
|
sys.stderr.write('This program requires Python 3.4 or later.')
|
||||||
sys.stderr.write(os.linesep)
|
sys.stderr.write(os.linesep)
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
###
|
###
|
||||||
# Copyright (c) 2002-2004, Jeremiah Fincher
|
# Copyright (c) 2002-2004, Jeremiah Fincher
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
###
|
###
|
||||||
# Copyright (c) 2005, Jeremiah Fincher
|
# Copyright (c) 2005, Jeremiah Fincher
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
###
|
###
|
||||||
# Copyright (c) 2002-2005, Jeremiah Fincher
|
# Copyright (c) 2002-2005, Jeremiah Fincher
|
||||||
@ -45,8 +45,8 @@ def error(s):
|
|||||||
sys.stderr.write(os.linesep)
|
sys.stderr.write(os.linesep)
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
|
|
||||||
if sys.version_info < (2, 6, 0):
|
if sys.version_info < (3, 4, 0):
|
||||||
error('This script requires Python 2.6 or newer.')
|
error('This script requires Python 3.4 or newer.')
|
||||||
|
|
||||||
import supybot.conf as conf
|
import supybot.conf as conf
|
||||||
from supybot.questions import *
|
from supybot.questions import *
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
###
|
###
|
||||||
# Copyright (c) 2005, Ali Afshar
|
# Copyright (c) 2005, Ali Afshar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
###
|
###
|
||||||
# Copyright (c) 2002-2004, Jeremiah Fincher
|
# Copyright (c) 2002-2004, Jeremiah Fincher
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
###
|
###
|
||||||
# Copyright (c) 2002-2005, Jeremiah Fincher
|
# Copyright (c) 2002-2005, Jeremiah Fincher
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
###
|
###
|
||||||
# Copyright (c) 2003-2004, Jeremiah Fincher
|
# Copyright (c) 2003-2004, Jeremiah Fincher
|
||||||
@ -41,8 +41,8 @@ def error(s):
|
|||||||
sys.stderr.write(os.linesep)
|
sys.stderr.write(os.linesep)
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
|
|
||||||
if sys.version_info < (2, 6, 0):
|
if sys.version_info < (3, 4, 0):
|
||||||
error('This program requires Python >= 2.6.0')
|
error('This program requires Python 3.4 or later.')
|
||||||
|
|
||||||
import supybot
|
import supybot
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user