From 2dc1b9ea4f5739a6c108d5911453a08104a950df Mon Sep 17 00:00:00 2001 From: Fabien Benureau Date: Thu, 22 Jan 2015 04:03:19 +0100 Subject: [PATCH] fix input() --- pubs/p3.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pubs/p3.py b/pubs/p3.py index 86b4165..cd4d48c 100644 --- a/pubs/p3.py +++ b/pubs/p3.py @@ -6,8 +6,8 @@ if sys.version_info[0] == 2: _read_config = configparser.SafeConfigParser.readfp def input(): - raw_input().decode(sys.stdin.encoding or 'utf8', 'ignore') - + return raw_input().decode(sys.stdin.encoding or 'utf8', 'ignore') + # The following has to be a function so that it can be mocked # for test_usecase. def _get_raw_stdout():