diff options
| author | Scott Bahling <sbahling@suse.com> | 2020-02-03 08:07:49 +0100 |
|---|---|---|
| committer | Scott Bahling <sbahling@suse.com> | 2020-02-03 08:07:49 +0100 |
| commit | 7d82a916100a01b80a49bd60e92a5aa430e0829b (patch) | |
| tree | 3198710614198d01bd1a057f95cb107518f3be53 /obsapi/repoflags.py | |
| parent | 3fd50299a657480bfaca19e02cb1d0dca91eb45b (diff) | |
| download | obsapi-7d82a916100a01b80a49bd60e92a5aa430e0829b.tar.gz obsapi-7d82a916100a01b80a49bd60e92a5aa430e0829b.tar.xz obsapi-7d82a916100a01b80a49bd60e92a5aa430e0829b.zip | |
Fix python 3 compatibility
Diffstat (limited to 'obsapi/repoflags.py')
| -rw-r--r-- | obsapi/repoflags.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/obsapi/repoflags.py b/obsapi/repoflags.py index 687796a..21d57d1 100644 --- a/obsapi/repoflags.py +++ b/obsapi/repoflags.py @@ -1,3 +1,4 @@ +import sys from lxml import etree from collections import namedtuple @@ -5,6 +6,9 @@ from collections import namedtuple RepoFlag = namedtuple('RepoFlag', 'setting repo arch') valid_flag_types = ('build', 'publish', 'useforbuild', 'debuginfo') +if sys.version_info >= (3, 0): + unicode = str + class RepoFlags(): |
