summaryrefslogtreecommitdiffstats
path: root/subcmds/upload.py
diff options
context:
space:
mode:
authorAnthony King <anthonydking@slimroms.net>2014-05-05 22:01:07 +0100
committerAnthony King <anthonydking@slimroms.net>2014-05-06 20:38:51 +0100
commitd792f7928dc32d69b8075e2c499767796ccca7de (patch)
tree1cd152dff6aefed74bef54353d2bd6ef09e2fabc /subcmds/upload.py
parent666d534636d262cbfd971509dd0f0be0cddb2e11 (diff)
downloadgit-repo-d792f7928dc32d69b8075e2c499767796ccca7de.tar.gz
Define unicode as str if using Python 3
The unicode object was renamed to str in Python 3 Change-Id: I1e4972fb07b313d3462587b3059bb3638d779625
Diffstat (limited to 'subcmds/upload.py')
-rw-r--r--subcmds/upload.py6
1 files changed, 4 insertions, 2 deletions
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
25from project import RepoHook 25from project import RepoHook
26 26
27from pyversion import is_python3 27from pyversion import is_python3
28# pylint:disable=W0622
28if not is_python3(): 29if not is_python3():
29 # pylint:disable=W0622
30 input = raw_input 30 input = raw_input
31 # pylint:enable=W0622 31else:
32 unicode = str
33# pylint:enable=W0622
32 34
33UNUSUAL_COMMIT_THRESHOLD = 5 35UNUSUAL_COMMIT_THRESHOLD = 5
34 36