From 506917882ece2c10a78ac6ff209e61bca37b1153 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 20 Aug 2015 07:08:59 +0200 Subject: [PATCH] argparser: Style fixes. --- qutebrowser/commands/argparser.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qutebrowser/commands/argparser.py b/qutebrowser/commands/argparser.py index 30299128b..2e8e18f0b 100644 --- a/qutebrowser/commands/argparser.py +++ b/qutebrowser/commands/argparser.py @@ -81,7 +81,7 @@ class ArgumentParser(argparse.ArgumentParser): raise ArgumentParserExit(status, msg) def error(self, msg): - raise ArgumentParserError(msg[0].upper() + msg[1:]) + raise ArgumentParserError(msg.capitalize()) def enum_getter(enum): @@ -101,11 +101,11 @@ def enum_getter(enum): return _get_enum_item -def multitype_conv(tpl): +def multitype_conv(types): """Function factory to get a type converter for a choice of types.""" def _convert(value): """Convert a value according to an iterable of possible arg types.""" - for typ in set(tpl): + for typ in set(types): if isinstance(typ, str): if value == typ: return value