summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorConley Owens <cco3@android.com>2014-05-07 18:20:31 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-05-07 18:20:32 +0000
commitdd7aea6c11e63749c6b46876ba5c902fd50a65a3 (patch)
tree70aed88036c151f038a01676d803e7c219a951e8
parent5196805fa28aa8873f76b2baa7b0fd52ec52d915 (diff)
parentd792f7928dc32d69b8075e2c499767796ccca7de (diff)
downloadgit-repo-dd7aea6c11e63749c6b46876ba5c902fd50a65a3.tar.gz
Merge "Define unicode as str if using Python 3"
-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