aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2021-05-12 12:50:02 +0300
committerFilipp Lepalaan <filipp@mac.com>2021-05-12 12:50:02 +0300
commit24e2cb7f6a7b6ddb5c0676294e7d77344fb96632 (patch)
treec93f48dde585b80e3674166764edd1d0c41bd774
parent23e7bc7926ce6990abb10b33b9e6af863ace0696 (diff)
downloadServo-24e2cb7f6a7b6ddb5c0676294e7d77344fb96632.tar.gz
Servo-24e2cb7f6a7b6ddb5c0676294e7d77344fb96632.tar.bz2
Servo-24e2cb7f6a7b6ddb5c0676294e7d77344fb96632.zip
python 3 fix
-rwxr-xr-xinstall.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/install.py b/install.py
index f2c1beb..a0ccf14 100755
--- a/install.py
+++ b/install.py
@@ -27,7 +27,7 @@ args['dbpwd'] = input('4/10 DB password []: ') or ''
assert call(['createuser', args['dbuser'], '-U', args['dbadmin']]) == 0, 'Could not create DB user'
-args['secret_key'] = os.urandom(32).encode('base-64').strip()
+args['secret_key'] = os.urandom(32).decode('base-64').strip()
args['install_locale'] = input('51/10 Locale [sv_SE.UTF-8]: ') or 'sv_SE.UTF-8'
default_country = args['install_locale'].split('_')[0]
args['install_country'] = input('6/10 Country [%s]: ' % default_country) or default_country