mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	Issue #27895: Spelling fixes (Contributed by Ville Skyttä).
This commit is contained in:
		
							parent
							
								
									613debcf0a
								
							
						
					
					
						commit
						15f44ab043
					
				
					 72 changed files with 121 additions and 121 deletions
				
			
		|  | @ -49,7 +49,7 @@ | |||
| 
 | ||||
| # Find a header embedded in a putative header value.  Used to check for | ||||
| # header injection attack. | ||||
| _embeded_header = re.compile(r'\n[^ \t]+:') | ||||
| _embedded_header = re.compile(r'\n[^ \t]+:') | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
|  | @ -385,7 +385,7 @@ def encode(self, splitchars=';, \t', maxlinelen=None, linesep='\n'): | |||
|         if self._chunks: | ||||
|             formatter.add_transition() | ||||
|         value = formatter._str(linesep) | ||||
|         if _embeded_header.search(value): | ||||
|         if _embedded_header.search(value): | ||||
|             raise HeaderParseError("header value appears to contain " | ||||
|                 "an embedded header: {!r}".format(value)) | ||||
|         return value | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Raymond Hettinger
						Raymond Hettinger