From 1087f40bd3935fa149e77cfebd55224857aa37a2 Mon Sep 17 00:00:00 2001 From: Scott Bahling Date: Sat, 1 Feb 2020 00:56:46 +0100 Subject: Python2 fix --- obsapi/repoflags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'obsapi') 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: -- cgit v1.2.3