diff options
-rw-r--r-- | Lib/distutils/msvccompiler.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/distutils/msvccompiler.py b/Lib/distutils/msvccompiler.py index 6acd4ef..ae5e2d7 100644 --- a/Lib/distutils/msvccompiler.py +++ b/Lib/distutils/msvccompiler.py @@ -20,7 +20,11 @@ from distutils.ccompiler import \ _can_read_reg = 0 try: - import _winreg + try: + import _winreg + except ImportError: + import winreg # for pre-2000/06/29 CVS Python + _can_read_reg = 1 hkey_mod = _winreg |