mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Rip out 'long' and 'L'-suffixed integer literals.
(Rough first cut.)
This commit is contained in:
		
							parent
							
								
									fc7bb8c786
								
							
						
					
					
						commit
						e2a383d062
					
				
					 146 changed files with 1446 additions and 1477 deletions
				
			
		| 
						 | 
				
			
			@ -149,7 +149,7 @@ def getwidth(self):
 | 
			
		|||
        # determine the width (min, max) for this subpattern
 | 
			
		||||
        if self.width:
 | 
			
		||||
            return self.width
 | 
			
		||||
        lo = hi = 0L
 | 
			
		||||
        lo = hi = 0
 | 
			
		||||
        UNITCODES = (ANY, RANGE, IN, LITERAL, NOT_LITERAL, CATEGORY)
 | 
			
		||||
        REPEATCODES = (MIN_REPEAT, MAX_REPEAT)
 | 
			
		||||
        for op, av in self.data:
 | 
			
		||||
| 
						 | 
				
			
			@ -172,8 +172,8 @@ def getwidth(self):
 | 
			
		|||
                hi = hi + j
 | 
			
		||||
            elif op in REPEATCODES:
 | 
			
		||||
                i, j = av[2].getwidth()
 | 
			
		||||
                lo = lo + long(i) * av[0]
 | 
			
		||||
                hi = hi + long(j) * av[1]
 | 
			
		||||
                lo = lo + int(i) * av[0]
 | 
			
		||||
                hi = hi + int(j) * av[1]
 | 
			
		||||
            elif op in UNITCODES:
 | 
			
		||||
                lo = lo + 1
 | 
			
		||||
                hi = hi + 1
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue