summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro del Castillo <alejandro.delcastillo@ni.com>2019-05-09 17:14:04 -0500
committerAlejandro del Castillo <alejandro.delcastillo@ni.com>2019-05-14 09:55:55 -0500
commit8ace3fffb05209806e718f09a5920131ec885f7c (patch)
tree343c6ff844927c5b151cdf890ce2a69a658b0be6
parent86b2dc4c9cc0b40e79d0bb049b98532285942b25 (diff)
downloadopkg-utils-8ace3fffb05209806e718f09a5920131ec885f7c.tar.gz
opkg-utils-8ace3fffb05209806e718f09a5920131ec885f7c.tar.bz2
opkg-utils-8ace3fffb05209806e718f09a5920131ec885f7c.zip
ArFile: add python3 compatibility
Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
-rw-r--r--arfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/arfile.py b/arfile.py
index 6e04ec3..60edd9b 100644
--- a/arfile.py
+++ b/arfile.py
@@ -76,7 +76,7 @@ class ArFile(object):
self.directoryRead = True
return None
- if l == "\n":
+ if l.decode('ascii') == "\n":
l = self.f.readline()
if not l: break
l = l.decode('ascii')