That was silly.

This commit is contained in:
Elf M. Sternberg 2016-09-28 15:37:23 -07:00
parent f2f223cb23
commit 3f6fec6ba3
1 changed files with 4 additions and 2 deletions

View File

@ -2,6 +2,7 @@ from __future__ import print_function
import gettext import gettext
_ = gettext.gettext _ = gettext.gettext
# ICK. Mutation, references, and hidden assignment. # ICK. Mutation, references, and hidden assignment.
def group_by(iterable, field_id): def group_by(iterable, field_id):
results = [] results = []
@ -15,8 +16,9 @@ def group_by(iterable, field_id):
results.append((key, keys[key])) results.append((key, keys[key]))
return results return results
def print_report(results, unlintable_filenames, cant_lint_filenames, def print_report(results, unlintable_filenames, cant_lint_filenames,
broken_linter_names, unfindable_filenames, options = {'bylinter': True}): broken_linter_names, unfindable_filenames, options={'bylinter': True}):
sort_position = 1 sort_position = 1
grouping = _('Linter: {}') grouping = _('Linter: {}')
if 'byfile' in options: if 'byfile' in options:
@ -48,7 +50,7 @@ def print_help(options, name):
def print_version(name, version): def print_version(name, version):
print(_('{} {} Copyright (c) 2009, 2016 Kennth M. "Elf" Sternberg')).format(name, version) print(_('{} {} Copyright (c) 2009, 2016 Kennth M. "Elf" Sternberg').format(name, version))
def print_linters(config, broken_linter_names): def print_linters(config, broken_linter_names):