Commit 06935d57 authored by Hanno Schlichting's avatar Hanno Schlichting

Fix print functions in mkwsgiinstance script.

parent e314d6c9
...@@ -185,7 +185,7 @@ def copyskel(sourcedir, targetdir, uid, gid, **replacements): ...@@ -185,7 +185,7 @@ def copyskel(sourcedir, targetdir, uid, gid, **replacements):
finally: finally:
os.chdir(pwd) os.chdir(pwd)
except (IOError, OSError) as msg: except (IOError, OSError) as msg:
print(msg, file=sys.stderr) sys.stderr.write(msg)
sys.exit(1) sys.exit(1)
......
...@@ -155,8 +155,7 @@ def usage(stream, msg=None): ...@@ -155,8 +155,7 @@ def usage(stream, msg=None):
def get_skeltarget(): def get_skeltarget():
print('Please choose a directory in which you\'d like to install') print('Please choose a directory in which you\'d like to install')
print('Zope "instance home" files such as database files, configuration') print('Zope "instance home" files such as database files, configuration')
print('files, etc.') print('files, etc.\n')
print()
while 1: while 1:
skeltarget = raw_input("Directory: ").strip() skeltarget = raw_input("Directory: ").strip()
if skeltarget == '': if skeltarget == '':
...@@ -171,8 +170,7 @@ def get_inituser(): ...@@ -171,8 +170,7 @@ def get_inituser():
import getpass import getpass
print('Please choose a username and password for the initial user.') print('Please choose a username and password for the initial user.')
print('These will be the credentials you use to initially manage') print('These will be the credentials you use to initially manage')
print('your new Zope instance.') print('your new Zope instance.\n')
print()
user = raw_input("Username: ").strip() user = raw_input("Username: ").strip()
if user == '': if user == '':
return None, None return None, None
......
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