diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 00:34:18 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 00:34:50 +0000 |
commit | 0be8d055fbe54f6359bc8a6b5a5f4203f9931095 (patch) | |
tree | 07312a4c5b669e5d7c2e89bfdb8310f85b6ecd4d /debian/patches/big_endian | |
parent | Merging upstream version 0.18.6. (diff) | |
download | ruamel.yaml-0be8d055fbe54f6359bc8a6b5a5f4203f9931095.tar.xz ruamel.yaml-0be8d055fbe54f6359bc8a6b5a5f4203f9931095.zip |
Merging debian version 0.18.6-1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/big_endian')
-rw-r--r-- | debian/patches/big_endian | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/debian/patches/big_endian b/debian/patches/big_endian deleted file mode 100644 index 2f617f0..0000000 --- a/debian/patches/big_endian +++ /dev/null @@ -1,33 +0,0 @@ -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 -+++ ruamel.yaml/main.py -@@ -58,7 +58,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, -@@ -75,6 +75,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 |