ae7654
From f0196bad669f0a46a33f7fa2f5afb85d00204cf3 Mon Sep 17 00:00:00 2001
ae7654
From: Mikolaj Izdebski <mizdebsk@redhat.com>
ae7654
Date: Tue, 20 Dec 2016 10:15:38 +0100
ae7654
Subject: [PATCH 3/3] Avoid calling zipfile.open(..., "rU")
ae7654
ae7654
Fixes: #33
ae7654
---
ae7654
 python/javapackages/common/manifest.py | 4 ++--
ae7654
 1 file changed, 2 insertions(+), 2 deletions(-)
ae7654
ae7654
diff --git a/python/javapackages/common/manifest.py b/python/javapackages/common/manifest.py
ae7654
index 5830d80..9a27ff8 100644
ae7654
--- a/python/javapackages/common/manifest.py
ae7654
+++ b/python/javapackages/common/manifest.py
ae7654
@@ -60,7 +60,7 @@ class Manifest(object):
ae7654
             try:
ae7654
                 jarfile = ZipFile(self._path)
ae7654
                 if "META-INF/MANIFEST.MF" in jarfile.namelist():
ae7654
-                    mf = jarfile.open("META-INF/MANIFEST.MF", "rU")
ae7654
+                    mf = jarfile.open("META-INF/MANIFEST.MF", "r")
ae7654
             except IOError:
ae7654
                 pass
ae7654
         if mf is None:
ae7654
@@ -93,7 +93,7 @@ class Manifest(object):
ae7654
 
ae7654
     def _normalize_manifest(self):
ae7654
         lines = []
ae7654
-        manifest = self._manifest.split(u'\n')
ae7654
+        manifest = self._manifest.splitlines()
ae7654
         for line in manifest:
ae7654
             if line.startswith(' '):
ae7654
                 lines[-1] += line.strip()
ae7654
-- 
ae7654
2.9.3
ae7654