From fdd9cf76101ae0a98526a52d16009877988e88ee Mon Sep 17 00:00:00 2001 From: sagi Date: Wed, 2 Dec 2015 00:28:18 +0000 Subject: [PATCH] change map() to a list comprehension. Long live GvR. --- letsencrypt-apache/letsencrypt_apache/configurator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/letsencrypt-apache/letsencrypt_apache/configurator.py b/letsencrypt-apache/letsencrypt_apache/configurator.py index dd99df666..1dd9dc84e 100644 --- a/letsencrypt-apache/letsencrypt_apache/configurator.py +++ b/letsencrypt-apache/letsencrypt_apache/configurator.py @@ -913,7 +913,7 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator): "RewriteRule", None, start=vhost.path) if rewrite_path: - if map(self.aug.get, rewrite_path) in [ + if [self.aug.get(x) for x in rewrite_path] in [ constants.REWRITE_HTTPS_ARGS, constants.REWRITE_HTTPS_ARGS_WITH_END]: raise errors.PluginEnhancementAlreadyPresent(