From db48cf95e47649aa68bc70c39c88d49c3fb523c7 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Wed, 17 Feb 2010 21:56:06 +0100 Subject: pylint: Fix bad indentation --- layman/action.py | 4 ++-- layman/db.py | 6 +++--- layman/debug.py | 2 +- layman/overlays/overlay.py | 12 ++++++------ 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/layman/action.py b/layman/action.py index 0ea4269..7d4b53b 100644 --- a/layman/action.py +++ b/layman/action.py @@ -96,8 +96,8 @@ class Sync: self.selection = config['sync'] - if config['sync_all'] or 'ALL' in self.selection: - self.selection = self.db.overlays.keys() + if config['sync_all'] or 'ALL' in self.selection: + self.selection = self.db.overlays.keys() enc = sys.getfilesystemencoding() if enc: diff --git a/layman/db.py b/layman/db.py index ceb89f1..e91bc0e 100644 --- a/layman/db.py +++ b/layman/db.py @@ -221,9 +221,9 @@ class RemoteDB(DbBase): self.proxies['http'] = os.getenv('http_proxy') if self.proxies: - proxy_handler = urllib2.ProxyHandler(self.proxies) - opener = urllib2.build_opener(proxy_handler) - urllib2.install_opener(opener) + proxy_handler = urllib2.ProxyHandler(self.proxies) + opener = urllib2.build_opener(proxy_handler) + urllib2.install_opener(opener) self.urls = [i.strip() for i in config['overlays'].split('\n') if i] diff --git a/layman/debug.py b/layman/debug.py index 32ea948..f3b8507 100644 --- a/layman/debug.py +++ b/layman/debug.py @@ -107,7 +107,7 @@ class Message: group = OptionGroup(parser, '', 'Control the debugging features of ' - + self.debug_env) + + self.debug_env) group.add_option('--debug', action = 'store_true', diff --git a/layman/overlays/overlay.py b/layman/overlays/overlay.py index f4ec63d..49fec24 100644 --- a/layman/overlays/overlay.py +++ b/layman/overlays/overlay.py @@ -112,10 +112,10 @@ class Overlay(object): if _sources: _sources = [e for e in _sources if 'type' in e.attrib] elif ('src' in xml.attrib) and ('type' in xml.attrib): - s = ET.Element('source', type=xml.attrib['type']) - s.text = xml.attrib['src'] - _sources = [s] - del s + s = ET.Element('source', type=xml.attrib['type']) + s.text = xml.attrib['src'] + _sources = [s] + del s if not _sources: raise Exception('Overlay "' + self.name + '" is missing a "source" entry!') @@ -168,7 +168,7 @@ class Overlay(object): self.description = '' if not ignore: raise Exception('Overlay "' + self.name + '" is missing a ' - '"description" entry!') + '"description" entry!') elif ignore == 1: OUT.warn('Overlay "' + self.name + '" is missing a ' '"description" entry!', 4) @@ -356,7 +356,7 @@ class Overlay(object): if self.feeds: result += u'\n%s:' % ((len(self.feeds) == 1) and "Feed" or "Feeds") for i in self.feeds: - result += u'\n %s' % i + result += u'\n %s' % i result += u'\n' return self._encode(result) -- cgit v1.2.3-1-g7c22