mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-27 07:06:13 +01:00
Fix syntax errors with Python 2.4 (bnc#500968).
This commit is contained in:
parent
cdcca2746d
commit
885c72af77
@ -29,7 +29,7 @@ class ArError(Exception):
|
||||
def __str__(self):
|
||||
return 'ar error: %s' % self.msg
|
||||
|
||||
class ArHdr():
|
||||
class ArHdr:
|
||||
"""Represents an ar header entry"""
|
||||
def __init__(self, fn, date, uid, gid, mode, size, fmag, off):
|
||||
self.file = fn.strip()
|
||||
@ -79,7 +79,7 @@ class ArFile(StringIO.StringIO):
|
||||
return '%s %s %s %s' % (self.name, self.uid,
|
||||
self.gid, self.mode)
|
||||
|
||||
class Ar():
|
||||
class Ar:
|
||||
"""
|
||||
Represents an ar archive (only GNU format is supported).
|
||||
Readonly access.
|
||||
|
@ -27,7 +27,7 @@ class CpioError(Exception):
|
||||
self.file = fn
|
||||
self.msg = msg
|
||||
|
||||
class CpioHdr():
|
||||
class CpioHdr:
|
||||
"""
|
||||
Represents a cpio header ("New" portable format and CRC format).
|
||||
"""
|
||||
@ -64,7 +64,7 @@ class CpioHdr():
|
||||
def __str__(self):
|
||||
return "%s %s %s %s" % (self.filename, self.filesize, self.namesize, self.dataoff)
|
||||
|
||||
class Cpio():
|
||||
class Cpio:
|
||||
"""
|
||||
Represents a cpio archive.
|
||||
Supported formats:
|
||||
|
Loading…
Reference in New Issue
Block a user