From 2d5a3aeb3bfd5ae6227171795494f5c2f00dae56 Mon Sep 17 00:00:00 2001 From: lethliel Date: Thu, 13 Dec 2018 13:23:26 +0100 Subject: [PATCH] [python3] magic is now a bytestring in python3 --- osc/util/packagequery.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/osc/util/packagequery.py b/osc/util/packagequery.py index 1e6bec35..03a84e49 100644 --- a/osc/util/packagequery.py +++ b/osc/util/packagequery.py @@ -60,18 +60,18 @@ class PackageQuery: f.seek(0) extra_tags = () pkgquery = None - if magic[:4] == '\xed\xab\xee\xdb': + if magic[:4] == b'\xed\xab\xee\xdb': from . import rpmquery pkgquery = rpmquery.RpmQuery(f) extra_tags = extra_rpmtags - elif magic == '!': + elif magic == b'!': from . import debquery pkgquery = debquery.DebQuery(f) extra_tags = extra_debtags - elif magic[:5] == '