From cc6d7413fb344f17c235f2071b2a0c30093ead95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20H=C3=BCwe?= Date: Sun, 20 Sep 2009 17:19:33 +0000 Subject: [PATCH] - fix for older python versions --- osc/util/packagequery.py | 2 +- osc/util/rpmquery.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/osc/util/packagequery.py b/osc/util/packagequery.py index 96a5fed4..ba1f643f 100644 --- a/osc/util/packagequery.py +++ b/osc/util/packagequery.py @@ -4,7 +4,7 @@ class PackageError(Exception): Exception.__init__(self) self.msg = msg -class PackageQuery(): +class PackageQuery: """abstract base class for all package types""" def read(self): raise NotImplementedError diff --git a/osc/util/rpmquery.py b/osc/util/rpmquery.py index 1c4fba40..03faad64 100644 --- a/osc/util/rpmquery.py +++ b/osc/util/rpmquery.py @@ -8,7 +8,7 @@ class RpmError(packagequery.PackageError): class RpmHeaderError(RpmError): pass -class RpmHeader(): +class RpmHeader: """corresponds more or less to the indexEntry_s struct""" def __init__(self, offset, length): self.offset = offset @@ -32,7 +32,7 @@ class RpmHeader(): def __len__(self): return len(self.entries) -class RpmHeaderEntry(): +class RpmHeaderEntry: """corresponds to the entryInfo_s struct (except the data attribute)""" # each element represents an int