diff options
author | Conley Owens <cco3@android.com> | 2014-05-07 18:20:31 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-05-07 18:20:32 +0000 |
commit | dd7aea6c11e63749c6b46876ba5c902fd50a65a3 (patch) | |
tree | 70aed88036c151f038a01676d803e7c219a951e8 | |
parent | 5196805fa28aa8873f76b2baa7b0fd52ec52d915 (diff) | |
parent | d792f7928dc32d69b8075e2c499767796ccca7de (diff) | |
download | git-repo-dd7aea6c11e63749c6b46876ba5c902fd50a65a3.tar.gz |
Merge "Define unicode as str if using Python 3"
-rw-r--r-- | subcmds/upload.py | 6 |
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 | |||
25 | from project import RepoHook | 25 | from project import RepoHook |
26 | 26 | ||
27 | from pyversion import is_python3 | 27 | from pyversion import is_python3 |
28 | # pylint:disable=W0622 | ||
28 | if not is_python3(): | 29 | if not is_python3(): |
29 | # pylint:disable=W0622 | ||
30 | input = raw_input | 30 | input = raw_input |
31 | # pylint:enable=W0622 | 31 | else: |
32 | unicode = str | ||
33 | # pylint:enable=W0622 | ||
32 | 34 | ||
33 | UNUSUAL_COMMIT_THRESHOLD = 5 | 35 | UNUSUAL_COMMIT_THRESHOLD = 5 |
34 | 36 | ||