mirror of
				https://github.com/python/cpython.git
				synced 2025-11-01 06:01:29 +00:00 
			
		
		
		
	Bugfix in match() -- the number of registers shouldn't be divided by two!
This commit is contained in:
		
							parent
							
								
									e6eef4b4a3
								
							
						
					
					
						commit
						af8d2bf4d8
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -86,7 +86,7 @@ def match(self, string, pos=0): | |||
| 	regs = self.code.match(string, pos, ANCHORED) | ||||
| 	if regs is None: | ||||
| 	    return None | ||||
| 	self.num_regs=len(regs)/2 | ||||
| 	self.num_regs=len(regs) | ||||
| 	return MatchObject(self, | ||||
| 			   string, | ||||
| 			   pos, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum