Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Factory:Rebuild
python-ruamel.yaml
0000-fix-big-endian-issues.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0000-fix-big-endian-issues.patch of Package python-ruamel.yaml
Author: Michael R. Crusoe <crusoe@debian.org> Description: Default to pure python parsing on big endian systems Forwarded: not-needed As the cpython code has an endianness bug https://sourceforge.net/p/ruamel-yaml/tickets/360/ Thanks to Rebecca N. Palmer for the tip about sys.byteorder! Index: ruamel.yaml/main.py =================================================================== --- ruamel.yaml.orig/main.py 2021-10-14 00:10:27.265523204 +0200 +++ ruamel.yaml/main.py 2021-10-14 00:11:02.469504291 +0200 @@ -55,7 +55,7 @@ self: Any, *, typ: Optional[Union[List[Text], Text]] = None, - pure: Any = False, + pure: Any = None, output: Any = None, plug_ins: Any = None, ) -> None: # input=None, @@ -64,6 +64,11 @@ """ self.typ = ['rt'] if typ is None else (typ if isinstance(typ, list) else [typ]) + if pure is None: + if sys.byteorder == 'big': + pure = True + else: + pure = False self.pure = pure # self._input = input
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor