summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2010-02-17 21:56:06 +0100
committerSebastian Pipping <sebastian@pipping.org>2010-02-17 22:41:11 +0100
commitdb48cf95e47649aa68bc70c39c88d49c3fb523c7 (patch)
tree922dc9f6815bafa173a63167cbf9ec6b898ee2ef
parentd6313993a6559a752a13e8826fa95c1afb39b9cd (diff)
downloadlayman-db48cf95e47649aa68bc70c39c88d49c3fb523c7.tar.gz
layman-db48cf95e47649aa68bc70c39c88d49c3fb523c7.tar.bz2
layman-db48cf95e47649aa68bc70c39c88d49c3fb523c7.zip
pylint: Fix bad indentation
-rw-r--r--layman/action.py4
-rw-r--r--layman/db.py6
-rw-r--r--layman/debug.py2
-rw-r--r--layman/overlays/overlay.py12
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,
'<Debugging options>',
'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)