Whitespace fixes.

This commit is contained in:
Florian Bruhin 2014-10-20 00:24:55 +02:00
parent 8e9836785f
commit 1238807745

View File

@ -208,15 +208,12 @@ class QuickmarkCompletionModel(basecompletion.BaseCompletionModel):
if match_field == 'url': if match_field == 'url':
for qm_name, qm_url in objreg.get('quickmark-manager').marks.items(): for qm_name, qm_url in objreg.get('quickmark-manager').marks.items():
qmlist.append((qm_url, qm_name)) qmlist.append((qm_url, qm_name))
elif match_field == 'name': elif match_field == 'name':
for qm_name, qm_url in objreg.get('quickmark-manager').marks.items(): for qm_name, qm_url in objreg.get('quickmark-manager').marks.items():
qmlist.append((qm_name, qm_url)) qmlist.append((qm_name, qm_url))
else: else:
raise ValueError("Invalid value '{}' for match_field!".format(match_field)) raise ValueError("Invalid value '{}' for match_field!".format(match_field))
cat = self.new_category("Quickmarks") cat = self.new_category("Quickmarks")
for (name, desc) in qmlist: for (name, desc) in qmlist:
self.new_item(cat, name, desc) self.new_item(cat, name, desc)