* trailing whitespace cleanups

This commit is contained in:
Faik Uygur
2006-10-30 17:21:31 +00:00
parent c1bb4a2698
commit effe4d5615
56 changed files with 428 additions and 443 deletions
-1
View File
@@ -35,7 +35,6 @@ class LZMAError(pisi.Error):
def __init__(self, err): def __init__(self, err):
pisi.Error.__init__(self, _("An error has occured while running LZMA:\n%s") % err) pisi.Error.__init__(self, _("An error has occured while running LZMA:\n%s") % err)
class ArchiveBase(object): class ArchiveBase(object):
"""Base class for Archive classes.""" """Base class for Archive classes."""
def __init__(self, file_path, atype): def __init__(self, file_path, atype):
-1
View File
@@ -579,7 +579,6 @@ class Builder:
self.metadata = metadata self.metadata = metadata
def gen_files_xml(self, package): def gen_files_xml(self, package):
"""Generates files.xml using the path definitions in specfile and """Generates files.xml using the path definitions in specfile and
the files produced by the build system.""" the files produced by the build system."""
-4
View File
@@ -495,7 +495,6 @@ to be downloaded from a repository containing sources.
pisi.api.build(x) pisi.api.build(x)
self.finalize() self.finalize()
class Emerge(Build): class Emerge(Build):
"""Build and install PiSi source packages from repository """Build and install PiSi source packages from repository
@@ -1042,7 +1041,6 @@ Usage: list-installed
ctx.ui.info('%15s - %s' % (package.name, unicode(package.summary))) ctx.ui.info('%15s - %s' % (package.name, unicode(package.summary)))
self.finalize() self.finalize()
class RebuildDb(Command): class RebuildDb(Command):
"""Rebuild Databases """Rebuild Databases
@@ -1287,7 +1285,6 @@ all repositories.
p = p + ' ' * max(0, 15 - lenp) p = p + ' ' * max(0, 15 - lenp)
ctx.ui.info('%s - %s ' % (p, unicode(package.summary))) ctx.ui.info('%s - %s ' % (p, unicode(package.summary)))
class ListComponents(Command): class ListComponents(Command):
"""List available components """List available components
@@ -1520,7 +1517,6 @@ Finds the installed package which contains the specified file.
default=False, help=_("Show only package name")) default=False, help=_("Show only package name"))
self.parser.add_option_group(group) self.parser.add_option_group(group)
# what does exact mean? -- exa # what does exact mean? -- exa
@staticmethod @staticmethod
def search_exact(path): def search_exact(path):
-1
View File
@@ -132,7 +132,6 @@ class ConfigurationSection(object):
def __getitem__(self, key): def __getitem__(self, key):
return self.__getattr__(key) return self.__getattr__(key)
class ConfigurationFile(object): class ConfigurationFile(object):
"""Parse and get configuration values from the configuration file""" """Parse and get configuration values from the configuration file"""
def __init__(self, filePath): def __init__(self, filePath):
-1
View File
@@ -148,7 +148,6 @@ class File:
self.compress = compress self.compress = compress
self.sign = sign self.sign = sign
uri = File.make_uri(uri) uri = File.make_uri(uri)
if mode==File.read or mode==File.write: if mode==File.read or mode==File.write:
self.mode = mode self.mode = mode
-1
View File
@@ -37,7 +37,6 @@ import pisi.specfile as specfile
class Error(pisi.Error): class Error(pisi.Error):
pass pass
class Index(XmlFile): class Index(XmlFile):
__metaclass__ = autoxml.autoxml __metaclass__ = autoxml.autoxml
-3
View File
@@ -171,7 +171,6 @@ class Writer(formatter.DumbWriter):
self.col = self.col + len(data) self.col = self.col + len(data)
self.atbreak = 0 self.atbreak = 0
class autoxml(oo.autosuper, oo.autoprop): class autoxml(oo.autosuper, oo.autoprop):
"""High-level automatic XML transformation interface for xmlfile. """High-level automatic XML transformation interface for xmlfile.
The idea is to declare a class for each XML tag. Inside the The idea is to declare a class for each XML tag. Inside the
@@ -243,7 +242,6 @@ class autoxml(oo.autosuper, oo.autoprop):
""" """
def __init__(cls, name, bases, dict): def __init__(cls, name, bases, dict):
"""entry point for metaclass code""" """entry point for metaclass code"""
#print 'generating class', name #print 'generating class', name
@@ -478,7 +476,6 @@ class autoxml(oo.autosuper, oo.autoprop):
cls.write = write cls.write = write
cls.parse = parse cls.parse = parse
def gen_attr_member(cls, attr): def gen_attr_member(cls, attr):
"""generate readers and writers for an attribute member""" """generate readers and writers for an attribute member"""
#print 'attr:', attr #print 'attr:', attr
-1
View File
@@ -93,4 +93,3 @@ class Package:
if __name__ == "__main__": if __name__ == "__main__":
p = Package("w0rmux", [], [], "0.7") p = Package("w0rmux", [], [], "0.7")
p.version_bump() p.version_bump()
-1
View File
@@ -128,7 +128,6 @@ class ComarProvide:
s += ' (' + self.om + ')' s += ' (' + self.om + ')'
return s return s
class Archive: class Archive:
s_uri = [ autoxml.String, autoxml.mandatory ] s_uri = [ autoxml.String, autoxml.mandatory ]
-1
View File
@@ -179,7 +179,6 @@ def run_logged(cmd):
return p.returncode return p.returncode
###################### ######################
# Terminal functions # # Terminal functions #
###################### ######################