Commit a951e208 authored by Greg Ward's avatar Greg Ward

Simplify the registry-module-finding code: _winreg or win32api/win32con.

This'll work fine with 2.0 or 1.5.2, but is less than ideal for
1.6a1/a2.  But the code to accomodate 1.6a1/a2 was released with
Distutils 0.9, so it can go away now.
parent 67211d1e
...@@ -20,10 +20,7 @@ from distutils.ccompiler import \ ...@@ -20,10 +20,7 @@ from distutils.ccompiler import \
_can_read_reg = 0 _can_read_reg = 0
try: try:
try: import _winreg
import _winreg
except ImportError:
import winreg # for pre-2000/06/29 CVS Python
_can_read_reg = 1 _can_read_reg = 1
hkey_mod = _winreg hkey_mod = _winreg
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment