install.py: fix for input() overwriting some variables.

Sat, 02 Jun 2018 12:19:27 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 02 Jun 2018 12:19:27 +0200
changeset 6316
ee88310f0334
parent 6315
958b16888c28
child 6317
e9ec47d52ff2

install.py: fix for input() overwriting some variables.

install.py file | annotate | diff | comparison | revisions
--- a/install.py	Sat Jun 02 11:51:51 2018 +0200
+++ b/install.py	Sat Jun 02 12:19:27 2018 +0200
@@ -1240,9 +1240,9 @@
     @rtype bool
     """
     ok = False
-    print(message, "\n")
-    answer = input("Shall '{0}' be installed using pip? (Y/n) "
-                   .format(packageName))
+    print("{0}\n\nShall '{1}' be installed using pip? (Y/n)"
+          .format(message, packageName), end=" ")
+    answer = input()
     if answer in ("", "Y", "y"):
         exitCode = subprocess.call(
             [sys.executable, "-m", "pip", "install", packageName])

eric ide

mercurial