| Index: third_party/upload.py
|
| diff --git a/third_party/upload.py b/third_party/upload.py
|
| index e2b8ed471ace7ba2bebaf3057fb127161e1edf08..f44136fc8f869f119d89fd6068f49723bae1f971 100755
|
| --- a/third_party/upload.py
|
| +++ b/third_party/upload.py
|
| @@ -36,7 +36,6 @@ against by using the '--rev' option.
|
|
|
| from __future__ import print_function
|
|
|
| -import ConfigParser
|
| import cookielib
|
| import errno
|
| import fnmatch
|
| @@ -56,6 +55,12 @@ import urlparse
|
|
|
| from multiprocessing.pool import ThreadPool
|
|
|
| +# The configparser module was renamed in Python 3.
|
| +try:
|
| + import configparser
|
| +except ImportError:
|
| + import ConfigParser as configparser
|
| +
|
| # The md5 module was deprecated in Python 2.5.
|
| try:
|
| from hashlib import md5
|
| @@ -2241,7 +2246,7 @@ def LoadSubversionAutoProperties():
|
| subversion_config = os.path.expanduser("~/.subversion/config")
|
| if not os.path.exists(subversion_config):
|
| return {}
|
| - config = ConfigParser.ConfigParser()
|
| + config = configparser.ConfigParser()
|
| config.read(subversion_config)
|
| if (config.has_section("miscellany") and
|
| config.has_option("miscellany", "enable-auto-props") and
|
|
|