mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Remove the use of callable() in re to silence warnings under -3.
This commit is contained in:
		
							parent
							
								
									33ede08cdd
								
							
						
					
					
						commit
						d9636e17cc
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -316,7 +316,7 @@ def scan(self, string): | |||
|             if i == j: | ||||
|                 break | ||||
|             action = self.lexicon[m.lastindex-1][1] | ||||
|             if callable(action): | ||||
|             if hasattr(action, '__call__'): | ||||
|                 self.match = m | ||||
|                 action = action(self, m.group()) | ||||
|             if action is not None: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Brett Cannon
						Brett Cannon