summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Mayo <aklhfex@gmail.com>2020-03-24 20:02:31 +0000
committerAndreas Sturmlechner <asturm@gentoo.org>2020-04-10 16:19:50 +0200
commit34b3362ad01dee92d63c1310b7875ae50413180e (patch)
tree2b88d7381ea04911e0ca80c8226bc68b648e71dd /dev-python/chai/files
parentdev-util/geany-plugins: make libgit2-0.99 compatible (diff)
downloadgentoo-34b3362ad01dee92d63c1310b7875ae50413180e.tar.gz
gentoo-34b3362ad01dee92d63c1310b7875ae50413180e.tar.bz2
gentoo-34b3362ad01dee92d63c1310b7875ae50413180e.zip
dev-python/chai: Bump to 1.1.2, py3.8
Avoid pyc and SyntaxErrors during install by not installing python2.py. Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Chris Mayo <aklhfex@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/15094 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'dev-python/chai/files')
-rw-r--r--dev-python/chai/files/chai-1.1.2-drop-Python2.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/dev-python/chai/files/chai-1.1.2-drop-Python2.patch b/dev-python/chai/files/chai-1.1.2-drop-Python2.patch
new file mode 100644
index 000000000000..82e8b78b2424
--- /dev/null
+++ b/dev-python/chai/files/chai-1.1.2-drop-Python2.patch
@@ -0,0 +1,30 @@
+--- a/chai/chai.py
++++ b/chai/chai.py
+@@ -62,11 +62,6 @@
+ try:
+ func(self, *args, **kwargs)
+ except UnexpectedCall as e:
+- # if this is not python3, use python2 syntax
+- if not hasattr(e, '__traceback__'):
+- from .python2 import reraise
+- reraise(
+- AssertionError, '\n\n' + str(e), sys.exc_info()[-1])
+ exc = AssertionError('\n\n' + str(e))
+ setattr(exc, '__traceback__', sys.exc_info()[-1])
+ raise exc
+--- a/chai/python2.py
++++ b/chai/python2.py
+@@ -1,3 +0,0 @@
+-
+-def reraise(exc, msg, traceback):
+- raise exc, msg, traceback
+--- a/chai.egg-info/SOURCES.txt
++++ b/chai.egg-info/SOURCES.txt
+@@ -10,7 +10,6 @@
+ chai/exception.py
+ chai/expectation.py
+ chai/mock.py
+-chai/python2.py
+ chai/spy.py
+ chai/stub.py
+ chai.egg-info/PKG-INFO