From 7e70ce43f272934a905d268d75da3422573d16a7 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 5 Jan 2020 11:29:41 -0800 Subject: [PATCH] scripts: migrate shebangs and version checks to Python 3 --- scripts/supybot | 6 +++--- scripts/supybot-adduser | 2 +- scripts/supybot-botchk | 2 +- scripts/supybot-plugin-create | 6 +++--- scripts/supybot-plugin-doc | 2 +- scripts/supybot-reset-password | 2 +- scripts/supybot-test | 2 +- scripts/supybot-wizard | 6 +++--- 8 files changed, 14 insertions(+), 14 deletions(-) diff --git a/scripts/supybot b/scripts/supybot index 0803e9af1..eefae7d81 100644 --- a/scripts/supybot +++ b/scripts/supybot @@ -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) diff --git a/scripts/supybot-adduser b/scripts/supybot-adduser index 950865940..c681ff127 100644 --- a/scripts/supybot-adduser +++ b/scripts/supybot-adduser @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ### # Copyright (c) 2002-2004, Jeremiah Fincher diff --git a/scripts/supybot-botchk b/scripts/supybot-botchk index 137bb4502..c7847360f 100644 --- a/scripts/supybot-botchk +++ b/scripts/supybot-botchk @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ### # Copyright (c) 2005, Jeremiah Fincher diff --git a/scripts/supybot-plugin-create b/scripts/supybot-plugin-create index c613473ef..46530bd00 100644 --- a/scripts/supybot-plugin-create +++ b/scripts/supybot-plugin-create @@ -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 * diff --git a/scripts/supybot-plugin-doc b/scripts/supybot-plugin-doc index b8f7325c2..a755f5d1a 100644 --- a/scripts/supybot-plugin-doc +++ b/scripts/supybot-plugin-doc @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ### # Copyright (c) 2005, Ali Afshar diff --git a/scripts/supybot-reset-password b/scripts/supybot-reset-password index 75e97c9ed..b20ddd0ff 100644 --- a/scripts/supybot-reset-password +++ b/scripts/supybot-reset-password @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ### # Copyright (c) 2002-2004, Jeremiah Fincher diff --git a/scripts/supybot-test b/scripts/supybot-test index d57b0bc0a..602da5afa 100644 --- a/scripts/supybot-test +++ b/scripts/supybot-test @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ### # Copyright (c) 2002-2005, Jeremiah Fincher diff --git a/scripts/supybot-wizard b/scripts/supybot-wizard index 33158a2bd..4552fee52 100644 --- a/scripts/supybot-wizard +++ b/scripts/supybot-wizard @@ -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