diff options
| author | Scott Bahling <sbahling@suse.com> | 2020-02-01 00:56:46 +0100 |
|---|---|---|
| committer | Scott Bahling <sbahling@suse.com> | 2020-02-01 00:56:46 +0100 |
| commit | 1087f40bd3935fa149e77cfebd55224857aa37a2 (patch) | |
| tree | 2bda0968a491a448db23141b506f140381555b4b /obsapi/repoflags.py | |
| parent | 8e104aebe3a67bb0c4f8f5f4a7c901c3eb79332f (diff) | |
| download | obsapi-1087f40bd3935fa149e77cfebd55224857aa37a2.tar.gz obsapi-1087f40bd3935fa149e77cfebd55224857aa37a2.tar.xz obsapi-1087f40bd3935fa149e77cfebd55224857aa37a2.zip | |
Python2 fix
Diffstat (limited to 'obsapi/repoflags.py')
| -rw-r--r-- | obsapi/repoflags.py | 2 |
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: |
