[Python-modules-commits] [cherrypy3] 02/06: merge patched into master
Carl Suster
arcresu-guest at moszumanska.debian.org
Fri Jan 6 09:43:09 UTC 2017
This is an automated email from the git hooks/post-receive script.
arcresu-guest pushed a commit to branch master
in repository cherrypy3.
commit 4a80b20c58a2bbad16f5f3632481998cf358be4d
Merge: bd5a031 48edb04
Author: Carl Suster <carl at contraflo.ws>
Date: Fri Jan 6 20:24:13 2017 +1100
merge patched into master
cherrypy/lib/reprconf.py | 5 ++++
cherrypy/test/static/index.html | 2 +-
cherrypy/tutorial/tutorial.conf | 8 +++---
debian/.git-dpm | 4 +--
.../0004-unrepr-also-from-__builtin__.patch | 33 ++++++++++++++++++++++
debian/patches/series | 1 +
6 files changed, 46 insertions(+), 7 deletions(-)
diff --cc debian/.git-dpm
index c04576d,0000000..22bb794
mode 100644,000000..100644
--- a/debian/.git-dpm
+++ b/debian/.git-dpm
@@@ -1,11 -1,0 +1,11 @@@
+# see git-dpm(1) from git-dpm package
- 80acc3353981e75c784c5b017da6b35355d33643
- 80acc3353981e75c784c5b017da6b35355d33643
++48edb047d52c3b5622ce80c65e6514505fc30d32
++48edb047d52c3b5622ce80c65e6514505fc30d32
+19b5509b39bed64544a4d901e6751e90a6da93a7
+19b5509b39bed64544a4d901e6751e90a6da93a7
+cherrypy3_8.7.0.orig.tar.gz
+6a55e351e68edc3ccf1a5d2d99117c400d13ea6f
+712835
+debianTag="debian/%e%v"
+patchedTag="patched/%e%v"
+upstreamTag="upstream/%e%u"
diff --cc debian/patches/0004-unrepr-also-from-__builtin__.patch
index 0000000,0000000..5b93f6c
new file mode 100644
--- /dev/null
+++ b/debian/patches/0004-unrepr-also-from-__builtin__.patch
@@@ -1,0 -1,0 +1,33 @@@
++From 48edb047d52c3b5622ce80c65e6514505fc30d32 Mon Sep 17 00:00:00 2001
++From: Carl Suster <carl at contraflo.ws>
++Date: Fri, 6 Jan 2017 20:21:51 +1100
++Subject: unrepr also from __builtin__
++
++The Python2 tests are failing because __import__ is not found either as
++a module or inside the module "builtins". According to the docs at
++https://docs.python.org/2/library/functions.html#__import__ this
++function is instead inside the module "__builtin__".
++
++This patch makes unrepr also look for the name inside __builtin__ so
++that it can find __import__. It is not clear why this works upstream but
++not in Debian.
++---
++ cherrypy/lib/reprconf.py | 5 +++++
++ 1 file changed, 5 insertions(+)
++
++diff --git a/cherrypy/lib/reprconf.py b/cherrypy/lib/reprconf.py
++index 2553292..0d9f7b8 100644
++--- a/cherrypy/lib/reprconf.py
+++++ b/cherrypy/lib/reprconf.py
++@@ -465,6 +465,11 @@ class _Builder3:
++ return getattr(builtins, name)
++ except AttributeError:
++ pass
+++ try:
+++ import __builtin__
+++ return getattr(__builtin__, name)
+++ except AttributeError:
+++ pass
++
++ raise TypeError('unrepr could not resolve the name %s' % repr(name))
++
diff --cc debian/patches/series
index 6051cf7,0000000..6829d2d
mode 100644,000000..100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@@ -1,3 -1,0 +1,4 @@@
+0001-disable-sphinx-rst.linker-extension.patch
+0002-use-mock.mock-instead-of-unittest.mock.patch
+0003-disable-test_antistampede.patch
++0004-unrepr-also-from-__builtin__.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/cherrypy3.git
More information about the Python-modules-commits
mailing list