diff options
author | Ingolf Becker <ingolf.becker@googlemail.com> | 2015-12-08 20:56:16 +0300 |
---|---|---|
committer | Ingolf Becker <ingolf.becker@googlemail.com> | 2015-12-08 20:56:16 +0300 |
commit | bbd6534744c7c8d91a1be0836c6e069a16eab71b (patch) | |
tree | dceecc485ab56ccdb678ddf9b6ed7cae22fb4321 /letsencrypt-apache | |
parent | 62ea74b9e4a66afedcf4625667e082497b719eea (diff) |
Fixed some pep8 formatting
Diffstat (limited to 'letsencrypt-apache')
-rw-r--r-- | letsencrypt-apache/letsencrypt_apache/configurator.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/letsencrypt-apache/letsencrypt_apache/configurator.py b/letsencrypt-apache/letsencrypt_apache/configurator.py index 76045bee1..1d39e7fdf 100644 --- a/letsencrypt-apache/letsencrypt_apache/configurator.py +++ b/letsencrypt-apache/letsencrypt_apache/configurator.py @@ -120,7 +120,7 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator): self.version = version self.vhosts = None self._enhance_func = {"redirect": self._enable_redirect, - "ensure-http-header": self._set_http_header} + "ensure-http-header": self._set_http_header} @property def mod_ssl_conf(self): @@ -570,18 +570,18 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator): # The Listen statement specifies an ip _, ip = listen[::-1].split(":", 1) ip = ip[::-1] - if "%s:%s" %(ip, port) not in listens: + if "%s:%s" % (ip, port) not in listens: if port == "443": - args = ["%s:%s" %(ip, port)] + args = ["%s:%s" % (ip, port)] else: # Non-standard ports should specify https protocol - args = ["%s:%s" %(ip, port), "https"] + args = ["%s:%s" % (ip, port), "https"] self.parser.add_dir_to_ifmodssl( parser.get_aug_path( self.parser.loc["listen"]), "Listen", args) self.save_notes += "Added Listen %s:%s directive to %s\n" % ( - ip, port, self.parser.loc["listen"]) - listens.append("%s:%s" %(ip, port)) + ip, port, self.parser.loc["listen"]) + listens.append("%s:%s" % (ip, port)) def make_addrs_sni_ready(self, addrs): """Checks to see if the server is ready for SNI challenges. |