From bb8c70fff6b2861c5c5a2a6faa92183b2978cde7 Mon Sep 17 00:00:00 2001 From: JocelynDelalande Date: Sun, 26 Jul 2020 18:54:02 +0200 Subject: [PATCH] Dropping requirement on python2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Nitpicking… --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 5bfd8b1..ef98703 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -115,7 +115,7 @@ fi if [ -e /etc/ihatemoney/settings.py ]; then # Strip out the no longer used part of the settings - python2 -c "d = open('/etc/ihatemoney/settings.py').read().replace('try:\n from settings import *\nexcept ImportError:\n pass\n', ''); open('/etc/ihatemoney/settings.py', 'w').write(d)" + python3 -c "d = open('/etc/ihatemoney/settings.py').read().replace('try:\n from settings import *\nexcept ImportError:\n pass\n', ''); open('/etc/ihatemoney/settings.py', 'w').write(d)" # Rename mv /etc/ihatemoney/settings.py ${ihatemoney_conf_path} fi