summaryrefslogtreecommitdiffstats
path: root/contrib/python/PyYAML
diff options
context:
space:
mode:
authorakastornov <[email protected]>2022-02-10 16:46:03 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:46:03 +0300
commit8d3a5ed3a188a34167eaee54f1691ce5c9edf2f3 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /contrib/python/PyYAML
parent3a2de774d91ca8d7325aaf81c200b1d2047725e6 (diff)
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'contrib/python/PyYAML')
-rw-r--r--contrib/python/PyYAML/py2/yaml/scanner.py12
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 b5eec641a87..587b73d8b47 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()