summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2011-05-03 14:36:27 -0500
committerSol Jerome <sol.jerome@gmail.com>2011-05-03 14:36:27 -0500
commit9d68095482ffe50fd0f86ab6119fc55064dcb56f (patch)
tree6b99a8114579289a6fbfaec7cd772011414a5fbe /src/lib
parent136d7397a067d815d986b49e06d6d3217fdb18f8 (diff)
downloadbcfg2-9d68095482ffe50fd0f86ab6119fc55064dcb56f.tar.gz
bcfg2-9d68095482ffe50fd0f86ab6119fc55064dcb56f.tar.bz2
bcfg2-9d68095482ffe50fd0f86ab6119fc55064dcb56f.zip
Packages: Solve byte string incompatibility in a different way
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Server/Plugins/Packages.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/Packages.py b/src/lib/Server/Plugins/Packages.py
index 19152074e..4e47f8549 100644
--- a/src/lib/Server/Plugins/Packages.py
+++ b/src/lib/Server/Plugins/Packages.py
@@ -429,7 +429,7 @@ class APTSource(Source):
print("Failed to read file %s" % fname)
raise
for line in reader.readlines():
- words = line.strip().split(b':', 1)
+ words = str(line.strip()).split(':', 1)
if words[0] == 'Package':
pkgname = words[1].strip().rstrip()
self.pkgnames.add(pkgname)