@@ -193,7 +193,7 @@ def __get__(self, obj, cls):
193
193
194
194
# ASCII minus control or special chars
195
195
_token = "[a-zA-Z0-9-!#$%&'*+.^_`|~]+"
196
- _re_istoken = re .compile ("^%s$" % _token , re .ASCII )
196
+ _re_token = re .compile ("^%s$" % _token , re .ASCII )
197
197
# A token or quoted-string (simple qs | token | slow qs)
198
198
_value = r'"[^\\"]*"|%s|"(?:\\.|[^"])*"' % _token
199
199
# A "; key=value" pair from content-disposition header
@@ -207,7 +207,7 @@ def header_quote(val):
207
207
Note: This is NOT the way modern browsers quote field names or filenames
208
208
in Content-Disposition headers. See :func:`content_disposition_quote`
209
209
"""
210
- if _re_istoken .match (val ):
210
+ if _re_token .match (val ):
211
211
return val
212
212
213
213
return '"' + val .replace ("\\ " , "\\ \\ " ).replace ('"' , '\\ "' ) + '"'
@@ -497,7 +497,7 @@ def parse(
497
497
continue
498
498
499
499
# Keep enough in buffer to accout for a partial delimiter at
500
- # the end, but emiot the rest.
500
+ # the end, but emit the rest.
501
501
chunk_end = bufferlen - (d_len + 1 )
502
502
assert chunk_end > offset # Always true
503
503
self ._current ._update_size (chunk_end - offset )
0 commit comments