summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Andrejak <thomas.andrejak@gmail.com>2018-05-19 18:34:08 +0200
committerTony Vroon <chainsaw@gentoo.org>2018-07-18 08:31:50 +0100
commit7929e22bd5d58b1b119d20008aa6823a9ce0fd3b (patch)
treefe9dda0d2d9cbd0d1a4719357a2695cb4dd7ea87 /net-analyzer/prelude-correlator/files
parentapp-admin/prelude-manager: Bump version 4.1 (diff)
downloadgentoo-7929e22bd5d58b1b119d20008aa6823a9ce0fd3b.tar.gz
gentoo-7929e22bd5d58b1b119d20008aa6823a9ce0fd3b.tar.bz2
gentoo-7929e22bd5d58b1b119d20008aa6823a9ce0fd3b.zip
net-analyzer/prelude-correlator: Bump version 4.1
Diffstat (limited to 'net-analyzer/prelude-correlator/files')
-rw-r--r--net-analyzer/prelude-correlator/files/prelude-correlator-4.1.1-fix_python3.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/net-analyzer/prelude-correlator/files/prelude-correlator-4.1.1-fix_python3.patch b/net-analyzer/prelude-correlator/files/prelude-correlator-4.1.1-fix_python3.patch
new file mode 100644
index 000000000000..a671aa476585
--- /dev/null
+++ b/net-analyzer/prelude-correlator/files/prelude-correlator-4.1.1-fix_python3.patch
@@ -0,0 +1,36 @@
+--- a/preludecorrelator/config.py
++++ b/preludecorrelator/config.py
+@@ -19,7 +19,11 @@
+
+ import os
+ import glob
+-import StringIO
++import sys
++if sys.version_info >= (3, 0):
++ from io import StringIO
++else:
++ import StringIO
+ try:
+ import configparser
+ except:
+@@ -77,5 +81,8 @@
+ f = open(fname, 'r')
+ except IOError:
+ continue
+- self.readfp(StringIO.StringIO('[prelude]\n' + f.read()))
++ if sys.version_info >= (3, 0):
++ self.readfp(StringIO('[prelude]\n' + f.read()))
++ else:
++ self.readfp(StringIO.StringIO('[prelude]\n' + f.read()))
+ f.close()
+--- a/preludecorrelator/context.py
++++ b/preludecorrelator/context.py
+@@ -362,7 +362,7 @@
+
+ try:
+ _CONTEXT_TABLE.update(ContextUnpickler(fd).load())
+- except EOFError:
++ except:
+ return
+
+ logger.debug("[load]: %d context loaded", len(_CONTEXT_TABLE))