From 73c2707ca053136a38226a7187b9a3ed89bce9d1 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 27 Mar 2012 13:25:53 +0200 Subject: [PATCH] BytesIO can only work with strings. --- python/pakfire/config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/pakfire/config.py b/python/pakfire/config.py index 7d2986ec5..a051910d7 100644 --- a/python/pakfire/config.py +++ b/python/pakfire/config.py @@ -127,6 +127,7 @@ class _Config(object): if not s: return + s = str(s) buf = io.BytesIO(s) config = ConfigParser() -- 2.39.5