[Reportbug-commits] [reportbug] 19/32: dont eval() menu input replies

Sandro Tosi morph at moszumanska.debian.org
Thu Dec 1 01:36:52 UTC 2016


This is an automated email from the git hooks/post-receive script.

morph pushed a commit to branch master
in repository reportbug.

commit 3f8914fc5989ce9f0abecc95d13a9ca6c3487f98
Author: Sandro Tosi <morph at debian.org>
Date:   Sun Nov 27 19:40:27 2016 -0500

    dont eval() menu input replies
---
 reportbug/ui/text_ui.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/reportbug/ui/text_ui.py b/reportbug/ui/text_ui.py
index 5c4dc3e..5f8e91a 100644
--- a/reportbug/ui/text_ui.py
+++ b/reportbug/ui/text_ui.py
@@ -150,9 +150,9 @@ def our_raw_input(prompt=None, completions=None, completer=None):
 
     try:
         if istty:
-            ret = eval(input(prompt))
+            ret = input(prompt)
         else:
-            ret = eval(input())
+            ret = input()
     except EOFError:
         ewrite('\nUser interrupt (^D).\n')
         raise SystemExit

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reportbug/reportbug.git



More information about the Reportbug-commits mailing list