Projects
Mega:24.03:SP1:Everything
python-ruamel-yaml
_service:tar_scm:0000-fix-big-endian-issues.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm: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! --- main.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 9068282..49e70a4 100644 --- a/main.py +++ b/main.py @@ -55,7 +55,7 @@ class YAML: 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, @@ -70,6 +70,11 @@ class YAML: """ 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 -- 2.39.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2