diff options
author | Anthony King <anthonydking@slimroms.net> | 2014-05-05 22:01:07 +0100 |
---|---|---|
committer | Anthony King <anthonydking@slimroms.net> | 2014-05-06 20:38:51 +0100 |
commit | d792f7928dc32d69b8075e2c499767796ccca7de (patch) | |
tree | 1cd152dff6aefed74bef54353d2bd6ef09e2fabc | |
parent | 666d534636d262cbfd971509dd0f0be0cddb2e11 (diff) | |
download | git-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
-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 | ||