aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--changelog.d/1891.change.rst1
-rw-r--r--setuptools/msvc.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/changelog.d/1891.change.rst b/changelog.d/1891.change.rst
new file mode 100644
index 00000000..81ccff10
--- /dev/null
+++ b/changelog.d/1891.change.rst
@@ -0,0 +1 @@
+Fix code for detecting Visual Studio's version on Windows under Python 2.
diff --git a/setuptools/msvc.py b/setuptools/msvc.py
index ffa7053b..2ffe1c81 100644
--- a/setuptools/msvc.py
+++ b/setuptools/msvc.py
@@ -20,6 +20,7 @@ This may also support compilers shipped with compatible Visual Studio versions.
"""
import json
+from io import open
from os import listdir, pathsep
from os.path import join, isfile, isdir, dirname
import sys