mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	#27364: fix "incorrect" uses of escape character in the stdlib.
And most of the tools. Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and Martin Panter.
This commit is contained in:
		
							parent
							
								
									513d7478a1
								
							
						
					
					
						commit
						44b548dda8
					
				
					 83 changed files with 324 additions and 324 deletions
				
			
		|  | @ -581,7 +581,7 @@ def test_get_comment_end_paren_mid_word(self): | |||
| 
 | ||||
|     def test_get_comment_quoted_parens(self): | ||||
|         self._test_get_x(parser.get_comment, | ||||
|             '(foo\) \(\)bar)', '(foo\) \(\)bar)', ' ', [], '', ['foo) ()bar']) | ||||
|             r'(foo\) \(\)bar)', r'(foo\) \(\)bar)', ' ', [], '', ['foo) ()bar']) | ||||
| 
 | ||||
|     def test_get_comment_non_printable(self): | ||||
|         self._test_get_x(parser.get_comment, | ||||
|  | @ -625,7 +625,7 @@ def test_get_comment_missing_end_of_nesting(self): | |||
| 
 | ||||
|     def test_get_comment_qs_in_nested_comment(self): | ||||
|         comment = self._test_get_x(parser.get_comment, | ||||
|             '(foo (b\)))', '(foo (b\)))', ' ', [], '', ['foo (b\))']) | ||||
|             r'(foo (b\)))', r'(foo (b\)))', ' ', [], '', [r'foo (b\))']) | ||||
|         self.assertEqual(comment[2].content, 'b)') | ||||
| 
 | ||||
|     # get_cfws | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 R David Murray
						R David Murray