diff options
| author | akastornov <[email protected]> | 2022-02-10 16:46:03 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:46:03 +0300 | 
| commit | 3a2de774d91ca8d7325aaf81c200b1d2047725e6 (patch) | |
| tree | 5674a780ce03a8bbd794733a19c7a70d587e4a14 /contrib/python/PyYAML | |
| parent | 7bd11ff35e97544d119e43447e3e865f2588ee7f (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'contrib/python/PyYAML')
| -rw-r--r-- | contrib/python/PyYAML/py2/yaml/scanner.py | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/python/PyYAML/py2/yaml/scanner.py b/contrib/python/PyYAML/py2/yaml/scanner.py index 587b73d8b47..b5eec641a87 100644 --- a/contrib/python/PyYAML/py2/yaml/scanner.py +++ b/contrib/python/PyYAML/py2/yaml/scanner.py @@ -26,8 +26,8 @@  __all__ = ['Scanner', 'ScannerError'] -import sys - +import sys  +   from error import MarkedYAMLError  from tokens import * @@ -1222,10 +1222,10 @@ class Scanner(object):                                      "expected escape sequence of %d hexdecimal numbers, but found %r" %                                          (length, self.peek(k).encode('utf-8')), self.get_mark())                      code = int(self.prefix(length), 16) -                    if code <= sys.maxunicode: -                        chunks.append(unichr(code)) -                    else: -                        chunks.append(('\\U%08x' % code).decode('unicode-escape')) +                    if code <= sys.maxunicode:  +                        chunks.append(unichr(code))  +                    else:  +                        chunks.append(('\\U%08x' % code).decode('unicode-escape'))                       self.forward(length)                  elif ch in u'\r\n\x85\u2028\u2029':                      self.scan_line_break()  | 
