diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-01-01 01:32:22 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-01-01 01:35:40 +0100 |
commit | 85c5d439e079b7cd070a5bd3dd8464d465d0747a (patch) | |
tree | e94a8751b7a4e0a677ae4141e8e0f336021a0b19 /net-analyzer/prelude-correlator/files | |
parent | net-analyzer/prelude-lml: Remove old (py3.6) (diff) | |
download | gentoo-85c5d439e079b7cd070a5bd3dd8464d465d0747a.tar.gz gentoo-85c5d439e079b7cd070a5bd3dd8464d465d0747a.tar.bz2 gentoo-85c5d439e079b7cd070a5bd3dd8464d465d0747a.zip |
net-analyzer/prelude-correlator: Remove old (py3.6)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'net-analyzer/prelude-correlator/files')
-rw-r--r-- | net-analyzer/prelude-correlator/files/prelude-correlator-4.1.1-fix_python3.patch | 36 |
1 files changed, 0 insertions, 36 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 deleted file mode 100644 index a671aa476585..000000000000 --- a/net-analyzer/prelude-correlator/files/prelude-correlator-4.1.1-fix_python3.patch +++ /dev/null @@ -1,36 +0,0 @@ ---- 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)) |