diff options
author | Benjamin Peterson <benjamin@python.org> | 2015-03-20 10:39:17 -0500 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2015-03-20 10:39:17 -0500 |
commit | b1dfdd29e9c48abd7bd6e743eebc345ea6fe3861 (patch) | |
tree | d039a077cecfe34bce9dc7b3c414331b8b307929 | |
parent | 3d3d9cd472811b23403fc1294347cc2d208234d2 (diff) | |
download | six-b1dfdd29e9c48abd7bd6e743eebc345ea6fe3861.tar.gz |
I don't think cygwin has winreg
-rw-r--r-- | six.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -299,11 +299,12 @@ _moved_attributes = [ MovedModule("xmlrpc_client", "xmlrpclib", "xmlrpc.client"), MovedModule("xmlrpc_server", "SimpleXMLRPCServer", "xmlrpc.server"), ] -#Add windows specific modules if needed -if sys.platform in ('win32', 'cygwin'): +# Add windows specific modules. +if sys.platform == "win32": _moved_attributes += [ MovedModule("winreg", "_winreg"), ] + for attr in _moved_attributes: setattr(_MovedItems, attr.name, attr) if isinstance(attr, MovedModule): |