mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-03 04:00:55 -06:00
Fixed an issue related taking input as raw_input on Python 2.
This is regression, introduced in the commit-id:
209ee78b25
This commit is contained in:
parent
57d6c3b406
commit
a04ef2de43
@ -26,6 +26,10 @@ from pgadmin.settings.settings_model import db, Role, User, Server, \
|
||||
# Configuration settings
|
||||
import config
|
||||
|
||||
# If script is running under python2 then change the behaviour of functions
|
||||
if hasattr(__builtins__, 'raw_input'):
|
||||
input = raw_input
|
||||
range = xrange
|
||||
|
||||
def do_setup(app):
|
||||
|
||||
@ -35,7 +39,7 @@ def do_setup(app):
|
||||
email = config.DESKTOP_USER
|
||||
p1 = ''.join([
|
||||
random.choice(string.ascii_letters + string.digits)
|
||||
for n in xrange(32)
|
||||
for n in range(32)
|
||||
])
|
||||
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user