File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ def read_hex_string_from_stream(
35
35
return create_string_object (bytes (arr ), forced_encoding )
36
36
37
37
38
- __ESPACE_DICT__ = {
38
+ __ESCAPE_DICT__ = {
39
39
b"n" : ord (b"\n " ),
40
40
b"r" : ord (b"\r " ),
41
41
b"t" : ord (b"\t " ),
@@ -79,7 +79,7 @@ def read_string_from_stream(
79
79
elif tok == b"\\ " :
80
80
tok = stream .read (1 )
81
81
try :
82
- txt .append (__ESPACE_DICT__ [tok ])
82
+ txt .append (__ESCAPE_DICT__ [tok ])
83
83
continue
84
84
except KeyError :
85
85
if b"0" <= tok <= b"7" :
@@ -104,7 +104,7 @@ def read_string_from_stream(
104
104
txt .append (i )
105
105
continue
106
106
elif tok in b"\n \r " :
107
- # This case is hit when a backslash followed by a line
107
+ # This case is hit when a backslash followed by a line
108
108
# break occurs. If it's a multi-char EOL, consume the
109
109
# second character:
110
110
tok = stream .read (1 )
You can’t perform that action at this time.
0 commit comments