aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/unicode_utils.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-01-23 19:08:57 -0500
committerJason R. Coombs <jaraco@jaraco.com>2016-01-23 19:08:57 -0500
commit3223234b137e9766a6f4e892a3369b13f57f878b (patch)
tree944090fa0eaf7b5021d3edaa7327fe9a3a97e279 /setuptools/unicode_utils.py
parent3d018c03405ecb21dfb717311f176c6586df343a (diff)
downloadexternal_python_setuptools-3223234b137e9766a6f4e892a3369b13f57f878b.tar.gz
external_python_setuptools-3223234b137e9766a6f4e892a3369b13f57f878b.tar.bz2
external_python_setuptools-3223234b137e9766a6f4e892a3369b13f57f878b.zip
Avoid TypeError when getfilesystemencoding returns None. Fixes #486.
Diffstat (limited to 'setuptools/unicode_utils.py')
-rw-r--r--setuptools/unicode_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/unicode_utils.py b/setuptools/unicode_utils.py
index 6eee6351..ffab3e24 100644
--- a/setuptools/unicode_utils.py
+++ b/setuptools/unicode_utils.py
@@ -25,7 +25,7 @@ def filesys_decode(path):
if isinstance(path, six.text_type):
return path
- fs_enc = sys.getfilesystemencoding()
+ fs_enc = sys.getfilesystemencoding() or 'utf-8'
candidates = fs_enc, 'utf-8'
for enc in candidates: