1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-24 19:22:07 +03:00

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
This commit is contained in:
Peter Eckersley
2016-01-29 14:01:59 -08:00
parent d281162f17
commit 60e72188e4

View File

@@ -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