From d792f7928dc32d69b8075e2c499767796ccca7de Mon Sep 17 00:00:00 2001 From: Anthony King Date: Mon, 5 May 2014 22:01:07 +0100 Subject: Define unicode as str if using Python 3 The unicode object was renamed to str in Python 3 Change-Id: I1e4972fb07b313d3462587b3059bb3638d779625 --- subcmds/upload.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'subcmds/upload.py') diff --git a/subcmds/upload.py b/subcmds/upload.py index e2fa261e..0ee36df1 100644 --- a/subcmds/upload.py +++ b/subcmds/upload.py @@ -25,10 +25,12 @@ from git_command import GitCommand from project import RepoHook from pyversion import is_python3 +# pylint:disable=W0622 if not is_python3(): - # pylint:disable=W0622 input = raw_input - # pylint:enable=W0622 +else: + unicode = str +# pylint:enable=W0622 UNUSUAL_COMMIT_THRESHOLD = 5 -- cgit v1.2.3-54-g00ecf