aboutsummaryrefslogtreecommitdiff
path: root/apks/jsonpickle/tests.patch
blob: 99d78af9620a5b9ebb8169a4d9f7823e1b400b52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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__()