Control: tags -1 patch

Dear Maintainer,

In Ubuntu, the attached patch was applied to achieve the following:

  * Grab PR from upstream Git to fix Python 3.6 compatibility, fixing FTBFS.

Thanks for considering the patch.

Logan Rosen

-- System Information:
Debian Release: buster/sid
  APT prefers cosmic-updates
  APT policy: (500, 'cosmic-updates'), (500, 'cosmic-security'), (500, 
'cosmic'), (400, 'cosmic-proposed'), (100, 'cosmic-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.18.0-13-generic (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru beanbag-1.9.2/debian/patches/python-3.6-compat 
beanbag-1.9.2/debian/patches/python-3.6-compat
--- beanbag-1.9.2/debian/patches/python-3.6-compat      1969-12-31 
19:00:00.000000000 -0500
+++ beanbag-1.9.2/debian/patches/python-3.6-compat      2019-01-06 
21:03:30.000000000 -0500
@@ -0,0 +1,27 @@
+Description: Fix failing unit tests with Python 3.6+
+Author: Charalampos Stratakis <cstra...@redhat.com>
+Bug: https://github.com/ajtowns/beanbag/pull/10
+Last-Update: 2019-01-06
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/beanbag/namespace.py
++++ b/beanbag/namespace.py
+@@ -102,6 +102,9 @@
+             basebases = (NamespaceBase,)
+ 
+         qn = None
++
++        classcell = nmspc.pop('__classcell__', None)
++
+         if "__qualname__" in nmspc:
+             qn = nmspc["__qualname__"]
+             nmspc["__qualname__"] = qn + "Base"
+@@ -114,6 +117,8 @@
+             conv_nmspc["__module__"] = nmspc["__module__"]
+         if qn is not None:
+             conv_nmspc["__qualname__"] = qn
++        if classcell is not None:
++            conv_nmspc['__classcell__'] = classcell
+ 
+         cls = type.__new__(mcls, name, bases, conv_nmspc)
+         basecls.Namespace = cls
diff -Nru beanbag-1.9.2/debian/patches/series 
beanbag-1.9.2/debian/patches/series
--- beanbag-1.9.2/debian/patches/series 2017-03-09 07:17:47.000000000 -0500
+++ beanbag-1.9.2/debian/patches/series 2019-01-06 13:12:42.000000000 -0500
@@ -1 +1,2 @@
 fix-code-in-example-file
+python-3.6-compat

Reply via email to