From 7d82a916100a01b80a49bd60e92a5aa430e0829b Mon Sep 17 00:00:00 2001 From: Scott Bahling Date: Mon, 3 Feb 2020 08:07:49 +0100 Subject: Fix python 3 compatibility --- obsapi/repoflags.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'obsapi') 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(): -- cgit v1.2.3