aboutsummaryrefslogtreecommitdiff
path: root/apks/jsonpickle/tests.patch
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-10-14 21:30:02 +0200
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-10-14 21:30:02 +0200
commit1fe2776b26d6fe83e7bcd662386e6448754c7ca9 (patch)
treeedfa8246a5d8631bd2139deae748caf54998af13 /apks/jsonpickle/tests.patch
parent307af8fd5a3e74ebcb64ac5bbe57493b59ead233 (diff)
downloadapkbuilds-1fe2776b26d6fe83e7bcd662386e6448754c7ca9.tar.gz
apkbuilds-1fe2776b26d6fe83e7bcd662386e6448754c7ca9.tar.bz2
apkbuilds-1fe2776b26d6fe83e7bcd662386e6448754c7ca9.zip
feat: fix remote pathing
Diffstat (limited to 'apks/jsonpickle/tests.patch')
-rw-r--r--apks/jsonpickle/tests.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/apks/jsonpickle/tests.patch b/apks/jsonpickle/tests.patch
new file mode 100644
index 0000000..99d78af
--- /dev/null
+++ b/apks/jsonpickle/tests.patch
@@ -0,0 +1,15 @@
+diff --git a/jsonpickle/pickler.py b/jsonpickle/pickler.py
+index ce64592..62ba575 100644
+--- a/jsonpickle/pickler.py
++++ b/jsonpickle/pickler.py
+@@ -462,6 +462,9 @@ class Pickler(object):
+ if has_getinitargs:
+ data[tags.INITARGS] = self._flatten(obj.__getinitargs__())
+
++ if type(obj).__name__ == 'TextIOWrapper':
++ return None
++
+ if has_getstate:
+ try:
+ state = obj.__getstate__()
+