(self, stream)
return self.constructor, self.parser
the old cyaml needs special setup, and therefore the stream
the old cyaml needs special setup, and therefore the stream
the old cyaml needs special setup and therefore the stream
def get_constructor_parser(self, stream):
        # type: (StreamTextType) -> Any
        """
        the old cyaml needs special setup, and therefore the stream
        """
        if self.Parser is not CParser:
            if self.Reader is None:
                self.Reader = reader.Reader
            if self.Scanner is None:
                self.Scanner = scanner.Scanner
            self.reader.stream = stream
        else:
            if self.Reader is not None:
                if self.Scanner is None:
                    self.Scanner = scanner.Scanner
                self.Parser = parser.Parser
                self.reader.stream = stream
            elif self.Scanner is not None:
                if self.Reader is None:
                    self.Reader = reader.Reader
                self.Parser = parser.Parser
                self.reader.stream = stream
            else:
                # combined C level reader>scanner>parser
                # does some calls to the resolver, e.g. BaseResolver.descend_resolver
                # if you just initialise the CParser, to much of resolver.py
                # is actually used
                rslvr = self.Resolver
                # if rslvr is srsly.ruamel_yaml.resolver.VersionedResolver:
                #     rslvr = srsly.ruamel_yaml.resolver.Resolver

                class XLoader(self.Parser, self.Constructor, rslvr):  # type: ignore
                    def __init__(
                        selfx, stream, version=self.version, preserve_quotes=None
                    ):
                        # type: (StreamTextType, Optional[VersionType], Optional[bool]) -> None  # NOQA
                        CParser.__init__(selfx, stream)
                        selfx._parser = selfx._composer = selfx
                        self.Constructor.__init__(selfx, loader=selfx)
                        selfx.allow_duplicate_keys = self.allow_duplicate_keys
                        rslvr.__init__(selfx, version=version, loadumper=selfx)

                self._stream = stream
                loader = XLoader(stream)
                return loader, loader
        return self.constructor, self.parser
def get_constructor_parser ( self , stream ) : # type: (StreamTextType) -> Any if self . Parser is not CParser : if self . Reader is None : self . Reader = reader . Reader if self . Scanner is None : self . Scanner = scanner . Scanner self . reader . stream = stream else : if self . Reader is not None : if self . Scanner is None : self . Scanner = scanner . Scanner self . Parser = parser . Parser self . reader . stream = stream elif self . Scanner is not None : if self . Reader is None : self . Reader = reader . Reader self . Parser = parser . Parser self . reader . stream = stream else : # combined C level reader>scanner>parser # does some calls to the resolver, e.g. BaseResolver.descend_resolver # if you just initialise the CParser, to much of resolver.py # is actually used rslvr = self . Resolver # if rslvr is srsly.ruamel_yaml.resolver.VersionedResolver: #     rslvr = srsly.ruamel_yaml.resolver.Resolver class XLoader ( self . Parser , self . Constructor , rslvr ) : # type: ignore def __init__ ( selfx , stream , version = self . version , preserve_quotes = None ) : # type: (StreamTextType, Optional[VersionType], Optional[bool]) -> None  # NOQA CParser . __init__ ( selfx , stream ) selfx . _parser = selfx . _composer = selfx self . Constructor . __init__ ( selfx , loader = selfx ) selfx . allow_duplicate_keys = self . allow_duplicate_keys rslvr . __init__ ( selfx , version = version , loadumper = selfx ) self . _stream = stream loader = XLoader ( stream ) return loader , loader return self . constructor , self . parser