From 60e72188e440282d79702e09461fe3c4649bb993 Mon Sep 17 00:00:00 2001 From: Peter Eckersley Date: Fri, 29 Jan 2016 14:01:59 -0800 Subject: [PATCH] Don't stringify unicode after all - Paths can be unicode; that's fine. - For now, unicode domains are caught and errored appropriately in le_util.check_domain_sanity(); one day they may be allowed --- letsencrypt/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/letsencrypt/cli.py b/letsencrypt/cli.py index 84723da3c..dc095a42e 100644 --- a/letsencrypt/cli.py +++ b/letsencrypt/cli.py @@ -1294,6 +1294,7 @@ class WebrootPathProcessor(argparse.Action): # pylint: disable=missing-docstring "them must precede all domain flags") config.webroot_path.append(webroot) + _undot = lambda domain: domain[:-1] if domain.endswith('.') else domain def _process_domain(config, domain_arg, webroot_path=None): @@ -1317,7 +1318,7 @@ class WebrootMapProcessor(argparse.Action): # pylint: disable=missing-docstring def __call__(self, parser, config, webroot_map_arg, option_string=None): webroot_map = json.loads(webroot_map_arg) for domains, webroot_path in webroot_map.iteritems(): - _process_domain(config, str(domains), [str(webroot_path)]) + _process_domain(config, domains, [webroot_path]) class DomainFlagProcessor(argparse.Action): # pylint: disable=missing-docstring