mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Get rid of some more cases of backquotes. parsermodule.c doesn't compile
but looks like that was a problem before this change.
This commit is contained in:
		
							parent
							
								
									3bd844e695
								
							
						
					
					
						commit
						2eca440c8d
					
				
					 6 changed files with 3 additions and 17 deletions
				
			
		|  | @ -111,7 +111,6 @@ def __init__(self): | |||
|         self._atom_dispatch = {token.LPAR: self.atom_lpar, | ||||
|                                token.LSQB: self.atom_lsqb, | ||||
|                                token.LBRACE: self.atom_lbrace, | ||||
|                                token.BACKQUOTE: self.atom_backquote, | ||||
|                                token.NUMBER: self.atom_number, | ||||
|                                token.STRING: self.atom_string, | ||||
|                                token.NAME: self.atom_name, | ||||
|  | @ -740,9 +739,6 @@ def atom_lbrace(self, nodelist): | |||
|             return Dict((), lineno=nodelist[0][2]) | ||||
|         return self.com_dictsetmaker(nodelist[1]) | ||||
| 
 | ||||
|     def atom_backquote(self, nodelist): | ||||
|         return Backquote(self.com_node(nodelist[1])) | ||||
| 
 | ||||
|     def atom_number(self, nodelist): | ||||
|         ### need to verify this matches compile.c | ||||
|         k = eval(nodelist[0][1]) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Neal Norwitz
						Neal Norwitz