From dd98aa44a5084f0590645f5ee9565ab962e6c844 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sun, 10 May 2015 10:37:00 +0200 Subject: =?UTF-8?q?Remove=20gettext=20support,=20as=20we=20don=E2=80=99t?= =?UTF-8?q?=20want=20to=20translate=20poezio,=20and=20it=20takes=20more=20?= =?UTF-8?q?than=201ms=20per=20call.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/args.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/args.py') diff --git a/src/args.py b/src/args.py index a67a0142..8b1ebbbd 100644 --- a/src/args.py +++ b/src/args.py @@ -3,7 +3,6 @@ Module related to the argument parsing There is a fallback to the deprecated optparse if argparse is not found """ -from gettext import gettext as _ from os import path from argparse import ArgumentParser, SUPPRESS @@ -14,13 +13,13 @@ def parse_args(CONFIG_PATH=''): parser = ArgumentParser('poezio') parser.add_argument("-c", "--check-config", dest="check_config", action='store_true', - help=_('Check the config file')) + help='Check the config file') parser.add_argument("-d", "--debug", dest="debug", - help=_("The file where debug will be written"), + help="The file where debug will be written", metavar="DEBUG_FILE") parser.add_argument("-f", "--file", dest="filename", default=path.join(CONFIG_PATH, 'poezio.cfg'), - help=_("The config file you want to use"), + help="The config file you want to use", metavar="CONFIG_FILE") parser.add_argument("-v", "--version", dest="version", help=SUPPRESS, metavar="VERSION", -- cgit v1.2.3