Mercurial > kallithea
changeset 8183:aa093e05a1c6
py3: automatic migration with 2to3 -f raw_input
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 05 Feb 2020 23:03:39 +0100 |
parents | abb00ff224b6 |
children | fb4b72c1c0f1 |
files | kallithea/lib/db_manage.py kallithea/lib/utils2.py |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/lib/db_manage.py Wed Feb 05 23:03:23 2020 +0100 +++ b/kallithea/lib/db_manage.py Wed Feb 05 23:03:39 2020 +0100 @@ -189,7 +189,7 @@ return password if username is None: - username = raw_input('Specify admin username:') + username = input('Specify admin username:') if password is None: password = get_password() if not password: @@ -198,7 +198,7 @@ if not password: sys.exit() if email is None: - email = raw_input('Specify admin email:') + email = input('Specify admin email:') self.create_user(username, password, email, True) else: log.info('creating admin and regular test users') @@ -294,7 +294,7 @@ if _path is not None: path = _path elif not self.tests and not test_repo_path: - path = raw_input( + path = input( 'Enter a valid absolute path to store repositories. ' 'All repositories in that path will be added automatically:' )
--- a/kallithea/lib/utils2.py Wed Feb 05 23:03:23 2020 +0100 +++ b/kallithea/lib/utils2.py Wed Feb 05 23:03:39 2020 +0100 @@ -602,7 +602,7 @@ def ask_ok(prompt, retries=4, complaint='Yes or no please!'): while True: - ok = raw_input(prompt) + ok = input(prompt) if ok in ('y', 'ye', 'yes'): return True if ok in ('n', 'no', 'nop', 'nope'):