1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-27 10:16:14 +01:00

- fix for older python versions

This commit is contained in:
Marcus Hüwe 2009-09-20 17:19:33 +00:00
parent 2123e136e0
commit cc6d7413fb
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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