Added fix-py35-compat.patch.
This commit is contained in:
		
							
								
								
									
										1
									
								
								debian/changelog
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								debian/changelog
									
									
									
									
										vendored
									
									
								
							| @@ -6,6 +6,7 @@ python-trollius (2.0-1) unstable; urgency=medium | ||||
|   * Testing with all versions of Python(3). | ||||
|   * Move some build-depends into build-depends-indep. | ||||
|   * Remove Pre-Depends on dpkg. | ||||
|   * Added fix-py35-compat.patch. | ||||
|  | ||||
|  -- Thomas Goirand <zigo@debian.org>  Fri, 05 Feb 2016 16:54:08 +0800 | ||||
|  | ||||
|   | ||||
							
								
								
									
										17
									
								
								debian/patches/fix-py35-compat.patch
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								debian/patches/fix-py35-compat.patch
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| Description: Fix Python 3.5 compat | ||||
| Author: Thomas Goirand <zigo@debian.org> | ||||
| Forwarded: no | ||||
| Last-Update: 2016-02-05 | ||||
|  | ||||
| --- python-trollius-2.0.orig/trollius/futures.py | ||||
| +++ python-trollius-2.0/trollius/futures.py | ||||
| @@ -422,9 +422,6 @@ class Future(object): | ||||
|                  result = other.result() | ||||
|                  self.set_result(result) | ||||
|   | ||||
| -    if compat.PY35: | ||||
| -        __await__ = __iter__ # make compatible with 'await' expression | ||||
| - | ||||
|  if events.asyncio is not None: | ||||
|      # Accept also asyncio Future objects for interoperability | ||||
|      _FUTURE_CLASSES = (Future, events.asyncio.Future) | ||||
							
								
								
									
										1
									
								
								debian/patches/series
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								debian/patches/series
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| fix-py35-compat.patch | ||||
		Reference in New Issue
	
	Block a user
	 Thomas Goirand
					Thomas Goirand