mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
Define unicode as str if using Python 3
The unicode object was renamed to str in Python 3 Change-Id: I1e4972fb07b313d3462587b3059bb3638d779625
This commit is contained in:
parent
666d534636
commit
d792f7928d
@ -25,9 +25,11 @@ from git_command import GitCommand
|
|||||||
from project import RepoHook
|
from project import RepoHook
|
||||||
|
|
||||||
from pyversion import is_python3
|
from pyversion import is_python3
|
||||||
if not is_python3():
|
|
||||||
# pylint:disable=W0622
|
# pylint:disable=W0622
|
||||||
|
if not is_python3():
|
||||||
input = raw_input
|
input = raw_input
|
||||||
|
else:
|
||||||
|
unicode = str
|
||||||
# pylint:enable=W0622
|
# pylint:enable=W0622
|
||||||
|
|
||||||
UNUSUAL_COMMIT_THRESHOLD = 5
|
UNUSUAL_COMMIT_THRESHOLD = 5
|
||||||
|
Loading…
Reference in New Issue
Block a user