/[gentoo-x86]/dev-python/six/files/six-1.9.0-winreg.patch
Gentoo

Contents of /dev-python/six/files/six-1.9.0-winreg.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Wed May 6 11:57:45 2015 UTC (4 years, 11 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/x-diff
Backport fix for windows only modules, bug #547928

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)

1 # HG changeset patch
2 # User Benjamin Peterson <benjamin@python.org>
3 # Date 1426865725 18000
4 # Node ID c996ed1dc0064f45e691f1664d06001ae07fff00
5 # Parent 7638872a6c760448ed8648d692c8eb702a29c361
6 # Parent 24dc6a6f7384712152dd1e881c115fb4805be9ea
7 Merged in mrossini/six (pull request #55)
8
9 _winreg is added to the moves module under windows only
10
11 diff --git a/six.py b/six.py
12 --- a/six.py
13 +++ b/six.py
14 @@ -298,8 +298,12 @@
15 MovedModule("urllib_robotparser", "robotparser", "urllib.robotparser"),
16 MovedModule("xmlrpc_client", "xmlrpclib", "xmlrpc.client"),
17 MovedModule("xmlrpc_server", "SimpleXMLRPCServer", "xmlrpc.server"),
18 - MovedModule("winreg", "_winreg"),
19 ]
20 +#Add windows specific modules if needed
21 +if sys.platform in ('win32', 'cygwin'):
22 + _moved_attributes += [
23 + MovedModule("winreg", "_winreg"),
24 + ]
25 for attr in _moved_attributes:
26 setattr(_MovedItems, attr.name, attr)
27 if isinstance(attr, MovedModule):

  ViewVC Help
Powered by ViewVC 1.1.20