summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Bahling <sbahling@suse.com>2020-02-01 00:56:46 +0100
committerScott Bahling <sbahling@suse.com>2020-02-01 00:56:46 +0100
commit1087f40bd3935fa149e77cfebd55224857aa37a2 (patch)
tree2bda0968a491a448db23141b506f140381555b4b
parent8e104aebe3a67bb0c4f8f5f4a7c901c3eb79332f (diff)
downloadobsapi-1087f40bd3935fa149e77cfebd55224857aa37a2.tar.gz
obsapi-1087f40bd3935fa149e77cfebd55224857aa37a2.tar.xz
obsapi-1087f40bd3935fa149e77cfebd55224857aa37a2.zip
Python2 fix
-rw-r--r--obsapi/repoflags.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/obsapi/repoflags.py b/obsapi/repoflags.py
index 61ddbbe..687796a 100644
--- a/obsapi/repoflags.py
+++ b/obsapi/repoflags.py
@@ -13,7 +13,7 @@ class RepoFlags():
self.flag_type = flag_type
self.root = None
- if isinstance(xml, (str,)):
+ if isinstance(xml, (str, unicode, bytes)):
try:
self.import_xml(xml)
except Exception: