summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThom Smith <thom@thomthesmith.com>2021-09-22 10:30:55 -0400
committerThom Smith <thom@thomthesmith.com>2021-09-22 10:30:55 -0400
commit141afddd45d29594e5e1699e54a8d817b10c660d (patch)
tree7ebb24c20352b02f0e933589a6511f00b0a08929
parent23120f886b97d38cf5788df001f41cb4acae8fbc (diff)
downloadpyyaml-git-141afddd45d29594e5e1699e54a8d817b10c660d.tar.gz
Correct spelling of “hexadecimal”
-rw-r--r--lib/yaml/scanner.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/yaml/scanner.py b/lib/yaml/scanner.py
index 7437ede..de925b0 100644
--- a/lib/yaml/scanner.py
+++ b/lib/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)