diff roundup/scripts/roundup_demo.py @ 5401:4cf48ff01e04

Python 3 preparation: replace raw_input uses. The existing my_input in roundup/admin.py is moved to a new roundup/anypy/my_input.py, which is then used in more places. Manual patch.
author Joseph Myers <jsm@polyomino.org.uk>
date Tue, 24 Jul 2018 23:47:10 +0000
parents 86ef4ab17dc5
children d09a1d6a3bd9
line wrap: on
line diff
--- a/roundup/scripts/roundup_demo.py	Tue Jul 24 23:16:09 2018 +0000
+++ b/roundup/scripts/roundup_demo.py	Tue Jul 24 23:47:10 2018 +0000
@@ -24,6 +24,7 @@
 
 from roundup import admin, configuration, demo, instance
 from roundup.i18n import _
+from roundup.anypy.my_input import my_input
 
 def run():
     home = DEFAULT_HOME
@@ -43,12 +44,12 @@
         # FIXME: i'd like to have an option to abort the tracker creation
         #   say, by entering a single dot.  but i cannot think of
         #   appropriate prompt for that.
-        home = raw_input(
+        home = my_input(
             _('Enter directory path to create demo tracker [%s]: ') % home)
         if not home:
             home = DEFAULT_HOME
         templates = admin.AdminTool().listTemplates().keys()
-        template = raw_input(
+        template = my_input(
             _('Enter tracker template to use (one of (%s)) [%s]: ') %
             (','.join(templates),template))
         if not template:

Roundup Issue Tracker: http://roundup-tracker.org/