瀏覽代碼

Merge "Define unicode as str if using Python 3"

Conley Owens 11 年之前
父節點
當前提交
dd7aea6c11
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      subcmds/upload.py

+ 4 - 2
subcmds/upload.py

@@ -25,10 +25,12 @@ from git_command import GitCommand
 from project import RepoHook
 
 from pyversion import is_python3
+# pylint:disable=W0622
 if not is_python3():
-  # pylint:disable=W0622
   input = raw_input
-  # pylint:enable=W0622
+else:
+  unicode = str
+# pylint:enable=W0622
 
 UNUSUAL_COMMIT_THRESHOLD = 5