Function check_printable

Synopsis

def check_printable(self, data)

Description

No description yet.

Source

Lines 138-145 in lib3/yaml/reader.py.

def check_printable(self, data):
    match = self.NON_PRINTABLE.search(data)
    if match:
        character = match.group()
        position = self.index+(len(self.buffer)-self.pointer)+match.start()
        raise ReaderError(self.name, position, ord(character),
                'unicode', "special characters are not allowed")





Add Discussion as Guest

Log in