Control: tags 903527 + patch
Control: tags 903527 + pending

Dear maintainer,

I've prepared an NMU for python-motor (versioned as 1.2.3-1.1) and 
uploaded it to DELAYED/14. Please feel free to tell me if I should 
cancel it.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

diff -Nru python-motor-1.2.3/debian/changelog python-motor-1.2.3/debian/changelog
--- python-motor-1.2.3/debian/changelog	2018-05-29 14:30:50.000000000 +0300
+++ python-motor-1.2.3/debian/changelog	2018-08-10 23:31:48.000000000 +0300
@@ -1,3 +1,11 @@
+python-motor (1.2.3-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Add upstream fix for compatibility with Python 3.7.
+    (Closes: #903527)
+
+ -- Adrian Bunk <b...@debian.org>  Fri, 10 Aug 2018 23:31:48 +0300
+
 python-motor (1.2.3-1) unstable; urgency=medium
 
   * New upstream release
diff -Nru python-motor-1.2.3/debian/patches/0001-MOTOR-248-Don-t-use-async-as-variable-name.patch python-motor-1.2.3/debian/patches/0001-MOTOR-248-Don-t-use-async-as-variable-name.patch
--- python-motor-1.2.3/debian/patches/0001-MOTOR-248-Don-t-use-async-as-variable-name.patch	1970-01-01 02:00:00.000000000 +0200
+++ python-motor-1.2.3/debian/patches/0001-MOTOR-248-Don-t-use-async-as-variable-name.patch	2018-08-10 23:25:42.000000000 +0300
@@ -0,0 +1,49 @@
+From aced74e749bd22efdeef891e1f345ec1923403ae Mon Sep 17 00:00:00 2001
+From: "A. Jesse Jiryu Davis" <je...@mongodb.com>
+Date: Wed, 27 Jun 2018 22:47:48 -0400
+Subject: MOTOR-248 Don't use "async" as variable name
+
+In Python 3.7, "async" becomes a full-fledged keyword.
+---
+ motor/frameworks/asyncio/__init__.py | 5 -----
+ test/asyncio_tests/__init__.py       | 6 +-----
+ 2 files changed, 1 insertion(+), 10 deletions(-)
+
+diff --git a/motor/frameworks/asyncio/__init__.py b/motor/frameworks/asyncio/__init__.py
+index 098f24c..21bb3f0 100644
+--- a/motor/frameworks/asyncio/__init__.py
++++ b/motor/frameworks/asyncio/__init__.py
+@@ -26,11 +26,6 @@ import functools
+ import multiprocessing
+ from concurrent.futures import ThreadPoolExecutor
+ 
+-try:
+-    from asyncio import ensure_future
+-except ImportError:
+-    from asyncio import async as ensure_future
+-
+ CLASS_PREFIX = 'AsyncIO'
+ 
+ 
+diff --git a/test/asyncio_tests/__init__.py b/test/asyncio_tests/__init__.py
+index b5ed7b9..05d8642 100644
+--- a/test/asyncio_tests/__init__.py
++++ b/test/asyncio_tests/__init__.py
+@@ -20,13 +20,9 @@ import gc
+ import inspect
+ import os
+ import unittest
++from asyncio import ensure_future
+ from unittest import SkipTest
+ 
+-try:
+-    from asyncio import ensure_future
+-except ImportError:
+-    from asyncio import async as ensure_future
+-
+ from mockupdb import MockupDB
+ 
+ from motor import motor_asyncio
+-- 
+2.11.0
+
diff -Nru python-motor-1.2.3/debian/patches/series python-motor-1.2.3/debian/patches/series
--- python-motor-1.2.3/debian/patches/series	1970-01-01 02:00:00.000000000 +0200
+++ python-motor-1.2.3/debian/patches/series	2018-08-10 23:31:48.000000000 +0300
@@ -0,0 +1,2 @@
+0001-MOTOR-248-Don-t-use-async-as-variable-name.patch
+

Reply via email to