Commit c4413490 authored by Nicola Spanti's avatar Nicola Spanti
Browse files
parent ed56c49acd92
Pipeline #50538 failed with stages
in 30 minutes and 2 seconds
......@@ -162,7 +162,7 @@ def run(args):
usage(1)
queries = [query for query in lines(args[1]) if not query.startswith('#')]
if user is None:
user = raw_input('login: ')
user = input('login: ')
if password is None:
password = getpass('password: ')
from cubicweb.cwconfig import instance_configuration
......
......@@ -3,7 +3,7 @@ if confirm('use Europe/Paris as timezone?'):
else:
import pytz
while True:
timezone = raw_input('enter your timezone')
timezone = input('enter your timezone')
if timezone in pytz.common_timezones:
break
......
......@@ -26,7 +26,7 @@ from cubicweb.server.utils import crypt_password
if __args__:
login = __args__.pop()
else:
login = raw_input("login? ")
login = input("login? ")
rset = rql('Any U WHERE U is CWUser, U login %(login)s', {'login': login})
......
......@@ -12,7 +12,7 @@ olddn = repo.source_by_uri(uri).config['user-base-dn']
assert olddn != newdn
raw_input("Ensure you've stopped the instance, type enter when done.")
input("Ensure you've stopped the instance, type enter when done.")
for eid, olduserdn in rql("Any X, XURI WHERE X cwuri XURI, X cw_source S, S name %(name)s",
{'name': uri}):
......
......@@ -54,7 +54,7 @@ def group_mapping(cnx, interactive=True):
print('or just type enter to skip permissions granted to a group')
for group in missing:
while True:
value = raw_input('eid for group %s: ' % group).strip()
value = input('eid for group %s: ' % group).strip()
if not value:
continue
try:
......
......@@ -28,7 +28,7 @@ def ren(a,b):
names = glob.glob('%s*'%a)
for name in names :
print('rename %s to %s' % (name, name.replace(a,b)))
if raw_input('accept [y/N]?').lower() =='y':
if input('accept [y/N]?').lower() =='y':
for name in names:
os.system('hg mv %s %s' % (name, name.replace(a,b)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment