jlec        15/05/06 11:57:45

  Added:                six-1.9.0-winreg.patch
  Log:
  Backport fix for windows only modules, bug #547928
  
  (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 
B9D4F231BD1558AB!)

Revision  Changes    Path
1.1                  dev-python/six/files/six-1.9.0-winreg.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/six/files/six-1.9.0-winreg.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/six/files/six-1.9.0-winreg.patch?rev=1.1&content-type=text/plain

Index: six-1.9.0-winreg.patch
===================================================================
# HG changeset patch
# User Benjamin Peterson <[email protected]>
# Date 1426865725 18000
# Node ID c996ed1dc0064f45e691f1664d06001ae07fff00
# Parent  7638872a6c760448ed8648d692c8eb702a29c361
# Parent  24dc6a6f7384712152dd1e881c115fb4805be9ea
Merged in mrossini/six (pull request #55)

_winreg is added to the moves module under windows only

diff --git a/six.py b/six.py
--- a/six.py
+++ b/six.py
@@ -298,8 +298,12 @@
     MovedModule("urllib_robotparser", "robotparser", "urllib.robotparser"),
     MovedModule("xmlrpc_client", "xmlrpclib", "xmlrpc.client"),
     MovedModule("xmlrpc_server", "SimpleXMLRPCServer", "xmlrpc.server"),
-    MovedModule("winreg", "_winreg"),
 ]
+#Add windows specific modules if needed
+if sys.platform in ('win32', 'cygwin'):
+    _moved_attributes += [
+        MovedModule("winreg", "_winreg"),
+    ]
 for attr in _moved_attributes:
     setattr(_MovedItems, attr.name, attr)
     if isinstance(attr, MovedModule):




Reply via email to