]> git.ipfire.org Git - pakfire.git/commitdiff
BytesIO can only work with strings.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 27 Mar 2012 11:25:53 +0000 (13:25 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 27 Mar 2012 11:25:53 +0000 (13:25 +0200)
python/pakfire/config.py

index 7d2986ec5de75018378c504dc7e7537ec9e4a6fe..a051910d796dd3358a3f73bdbc429d1e75078c56 100644 (file)
@@ -127,6 +127,7 @@ class _Config(object):
                if not s:
                        return
 
+               s = str(s)
                buf = io.BytesIO(s)
 
                config = ConfigParser()