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!

--- ruamel.yaml.orig/main.py
+++ ruamel.yaml/main.py
@@ -59,7 +59,7 @@
 
 class YAML(object):
     def __init__(
-        self, _kw=enforce, typ=None, pure=False, output=None, plug_ins=None  # input=None,
+        self, _kw=enforce, typ=None, pure=None, output=None, plug_ins=None  # input=None,
     ):
         # type: (Any, Optional[Text], Any, Any, Any) -> None
         """
@@ -79,6 +79,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
