mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-30 23:47:27 +03:00 
			
		
		
		
	Python 3.4 support for the IFDRational
This commit is contained in:
		
							parent
							
								
									3dd4b39411
								
							
						
					
					
						commit
						bd05d66c7e
					
				|  | @ -313,7 +313,8 @@ class IFDRational(Rational): | |||
|     """ a = ['add','radd', 'sub', 'rsub','div', 'rdiv', 'mul', 'rmul', | ||||
|              'truediv', 'rtruediv', 'floordiv', | ||||
|              'rfloordiv','mod','rmod', 'pow','rpow', 'pos', 'neg', | ||||
|              'abs', 'trunc', 'lt', 'gt', 'le', 'ge', 'nonzero'] | ||||
|              'abs', 'trunc', 'lt', 'gt', 'le', 'ge', 'nonzero', | ||||
|              'ceil', 'floor', 'round'] | ||||
|         print "\n".join("__%s__ = _delegate('__%s__')" % (s,s) for s in a) | ||||
|         """ | ||||
| 
 | ||||
|  | @ -342,6 +343,9 @@ class IFDRational(Rational): | |||
|     __le__ = _delegate('__le__') | ||||
|     __ge__ = _delegate('__ge__') | ||||
|     __nonzero__ = _delegate('__nonzero__') | ||||
|     __ceil__ = _delegate('__ceil__') | ||||
|     __floor__ = _delegate('__floor__') | ||||
|     __round__ = _delegate('__round__') | ||||
| 
 | ||||
|      | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user