@@ -193,7 +193,7 @@ def __get__(self, obj, cls):
193193
194194# ASCII minus control or special chars
195195_token = "[a-zA-Z0-9-!#$%&'*+.^_`|~]+"
196- _re_istoken = re .compile ("^%s$" % _token , re .ASCII )
196+ _re_token = re .compile ("^%s$" % _token , re .ASCII )
197197# A token or quoted-string (simple qs | token | slow qs)
198198_value = r'"[^\\"]*"|%s|"(?:\\.|[^"])*"' % _token
199199# A "; key=value" pair from content-disposition header
@@ -207,7 +207,7 @@ def header_quote(val):
207207 Note: This is NOT the way modern browsers quote field names or filenames
208208 in Content-Disposition headers. See :func:`content_disposition_quote`
209209 """
210- if _re_istoken .match (val ):
210+ if _re_token .match (val ):
211211 return val
212212
213213 return '"' + val .replace ("\\ " , "\\ \\ " ).replace ('"' , '\\ "' ) + '"'
@@ -497,7 +497,7 @@ def parse(
497497 continue
498498
499499 # 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.
501501 chunk_end = bufferlen - (d_len + 1 )
502502 assert chunk_end > offset # Always true
503503 self ._current ._update_size (chunk_end - offset )
0 commit comments