summaryrefslogtreecommitdiffstats
path: root/contrib/python/PyYAML/py3/yaml/scanner.py
diff options
context:
space:
mode:
authorrobot-piglet <[email protected]>2024-08-30 15:30:10 +0300
committerrobot-piglet <[email protected]>2024-08-30 17:37:48 +0300
commit29e274a4ea4120f32e989dd3566b51362df6f7de (patch)
tree7a909dd0275140add197444c9065e2c45e16c775 /contrib/python/PyYAML/py3/yaml/scanner.py
parent9b34e4f5ca33d29cd33ff5c496601b956d09cd16 (diff)
Intermediate changes
Diffstat (limited to 'contrib/python/PyYAML/py3/yaml/scanner.py')
-rw-r--r--contrib/python/PyYAML/py3/yaml/scanner.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/python/PyYAML/py3/yaml/scanner.py b/contrib/python/PyYAML/py3/yaml/scanner.py
index 7437ede1c60..de925b07f1e 100644
--- a/contrib/python/PyYAML/py3/yaml/scanner.py
+++ b/contrib/python/PyYAML/py3/yaml/scanner.py
@@ -1211,7 +1211,7 @@ class Scanner:
for k in range(length):
if self.peek(k) not in '0123456789ABCDEFabcdef':
raise ScannerError("while scanning a double-quoted scalar", start_mark,
- "expected escape sequence of %d hexdecimal numbers, but found %r" %
+ "expected escape sequence of %d hexadecimal numbers, but found %r" %
(length, self.peek(k)), self.get_mark())
code = int(self.prefix(length), 16)
chunks.append(chr(code))
@@ -1403,7 +1403,7 @@ class Scanner:
for k in range(2):
if self.peek(k) not in '0123456789ABCDEFabcdef':
raise ScannerError("while scanning a %s" % name, start_mark,
- "expected URI escape sequence of 2 hexdecimal numbers, but found %r"
+ "expected URI escape sequence of 2 hexadecimal numbers, but found %r"
% self.peek(k), self.get_mark())
codes.append(int(self.prefix(2), 16))
self.forward(2)