Merge "Define unicode as str if using Python 3"
This commit is contained in:
commit
dd7aea6c11
1 changed files with 4 additions and 2 deletions
|
@ -25,10 +25,12 @@ from git_command import GitCommand
|
||||||
from project import RepoHook
|
from project import RepoHook
|
||||||
|
|
||||||
from pyversion import is_python3
|
from pyversion import is_python3
|
||||||
|
# pylint:disable=W0622
|
||||||
if not is_python3():
|
if not is_python3():
|
||||||
# pylint:disable=W0622
|
|
||||||
input = raw_input
|
input = raw_input
|
||||||
# pylint:enable=W0622
|
else:
|
||||||
|
unicode = str
|
||||||
|
# pylint:enable=W0622
|
||||||
|
|
||||||
UNUSUAL_COMMIT_THRESHOLD = 5
|
UNUSUAL_COMMIT_THRESHOLD = 5
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue