From 3f6fec6ba3bd789b4b34d5f43be35f5ca384ca1b Mon Sep 17 00:00:00 2001 From: "Kenneth M. Elf Sternberg" Date: Wed, 28 Sep 2016 15:37:23 -0700 Subject: [PATCH] That was silly. --- git_lint/reporters.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/git_lint/reporters.py b/git_lint/reporters.py index 41149bf..3ddeca2 100644 --- a/git_lint/reporters.py +++ b/git_lint/reporters.py @@ -2,6 +2,7 @@ from __future__ import print_function import gettext _ = gettext.gettext + # ICK. Mutation, references, and hidden assignment. def group_by(iterable, field_id): results = [] @@ -15,8 +16,9 @@ def group_by(iterable, field_id): results.append((key, keys[key])) return results + 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 grouping = _('Linter: {}') if 'byfile' in options: @@ -48,7 +50,7 @@ def print_help(options, name): 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):