[Python-modules-commits] [toolz] 01/01: Add dont-referece-toolz-curried-exceptions.patch

Diane Trout diane at moszumanska.debian.org
Wed Jul 5 17:37:59 UTC 2017


This is an automated email from the git hooks/post-receive script.

diane pushed a commit to branch master
in repository toolz.

commit af77e67fb0111f13ef4c67a1452619cd8e261567
Author: Diane Trout <diane at ghic.org>
Date:   Wed Jul 5 10:37:31 2017 -0700

    Add dont-referece-toolz-curried-exceptions.patch
---
 debian/changelog                                   |  6 +++++
 .../dont-reference-toolz-curried-exceptions.patch  | 29 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 3 files changed, 36 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 6bb057a..86e714e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+toolz (0.8.2-2) unstable; urgency=medium
+
+  * Add dont-reference-toolz-curried-exceptions.patch (Closes: #867242)
+
+ -- Diane Trout <diane at ghic.org>  Wed, 05 Jul 2017 10:32:00 -0700
+
 toolz (0.8.2-1) unstable; urgency=medium
 
   * New upstream release
diff --git a/debian/patches/dont-reference-toolz-curried-exceptions.patch b/debian/patches/dont-reference-toolz-curried-exceptions.patch
new file mode 100644
index 0000000..f8970cc
--- /dev/null
+++ b/debian/patches/dont-reference-toolz-curried-exceptions.patch
@@ -0,0 +1,29 @@
+Author: Erik Welch
+Description: Avoid importing the curried.exceptions module
+ should avoid triggering an import error.
+Bug: https://github.com/pytoolz/toolz/issues/357
+Origin: https://github.com/pytoolz/toolz/pull/358/commits/bfbed05f2d0f19c254cc181cd5c9191ca016acb5
+Bug-Debian: 867242
+
+index afee159..1780c50 100644
+--- a/toolz/tests/test_serialization.py
++++ b/toolz/tests/test_serialization.py
+@@ -1,6 +1,6 @@
+ from toolz import *
+ import toolz
+-import toolz.curried.exceptions
++import toolz.curried
+ import pickle
+ from toolz.compatibility import PY3, PY33, PY34
+ from toolz.utils import raises
+@@ -62,8 +62,8 @@ def test_flip():
+ 
+ def test_curried_exceptions():
+     # This tests a global curried object that isn't defined in toolz.functoolz
+-    merge = pickle.loads(pickle.dumps(toolz.curried.exceptions.merge))
+-    assert merge is toolz.curried.exceptions.merge
++    merge = pickle.loads(pickle.dumps(toolz.curried.merge))
++    assert merge is toolz.curried.merge
+ 
+ 
+ @toolz.curry
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..12229fe
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+dont-reference-toolz-curried-exceptions.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/toolz.git



More information about the Python-modules-commits mailing list