mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	Make __future__ features similar for with and absolute import since they were both added before a1
This commit is contained in:
		
							parent
							
								
									5e9f1fa706
								
							
						
					
					
						commit
						9193491eb3
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -65,7 +65,7 @@
 | 
			
		|||
CO_GENERATOR_ALLOWED = 0        # generators (obsolete, was 0x1000)
 | 
			
		||||
CO_FUTURE_DIVISION   = 0x2000   # division
 | 
			
		||||
CO_FUTURE_ABSIMPORT  = 0x4000   # absolute_import
 | 
			
		||||
CO_FUTURE_WITH_STATEMENT  = 0x8000   # with statement added in 2.5
 | 
			
		||||
CO_FUTURE_WITH_STATEMENT  = 0x8000   # with statement
 | 
			
		||||
 | 
			
		||||
class _Feature:
 | 
			
		||||
    def __init__(self, optionalRelease, mandatoryRelease, compiler_flag):
 | 
			
		||||
| 
						 | 
				
			
			@ -111,6 +111,6 @@ def __repr__(self):
 | 
			
		|||
                           (2, 7, 0, "alpha", 0),
 | 
			
		||||
                           CO_FUTURE_ABSIMPORT)
 | 
			
		||||
 | 
			
		||||
with_statement = _Feature((2, 5, 0, "alpha", 2),
 | 
			
		||||
with_statement = _Feature((2, 5, 0, "alpha", 1),
 | 
			
		||||
                          (2, 6, 0, "alpha", 0),
 | 
			
		||||
                          CO_FUTURE_WITH_STATEMENT)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue