From a4cc92989da6619456a69f8d176e0986c4935496 Mon Sep 17 00:00:00 2001 From: Christoph Goehre Date: Sat, 20 Sep 2008 10:52:41 +0200 Subject: expand tabs and remove tailing whitespaces --- minidinstall/DpkgControl.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'minidinstall/DpkgControl.py') diff --git a/minidinstall/DpkgControl.py b/minidinstall/DpkgControl.py index 38147c7..4bda8c5 100755 --- a/minidinstall/DpkgControl.py +++ b/minidinstall/DpkgControl.py @@ -50,7 +50,7 @@ class DpkgParagraph(DpkgOrderedDatalist): value = None while 1: line = f.readline() - if not line: + if not line: return # skip blank lines until we reach a paragraph if line == '\n': @@ -124,10 +124,10 @@ class DpkgSourceControl( DpkgControl ): f = SignedFile(f) self.source = self._load_one( f ) DpkgControl.load( self, f ) - + def __repr__( self ): return self.source.__repr__() + "\n" + DpkgControl.__repr__( self ) - + def _store( self, f ): "Write our control data to a file object" self.source._store( f ) -- cgit v1.2.3