mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +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: |             if i == j: | ||||||
|                 break |                 break | ||||||
|             action = self.lexicon[m.lastindex-1][1] |             action = self.lexicon[m.lastindex-1][1] | ||||||
|             if callable(action): |             if hasattr(action, '__call__'): | ||||||
|                 self.match = m |                 self.match = m | ||||||
|                 action = action(self, m.group()) |                 action = action(self, m.group()) | ||||||
|             if action is not None: |             if action is not None: | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Brett Cannon
						Brett Cannon