On stabilise le plugin Python en virant toute occurrence de print.

* Désolé. \o/
This commit is contained in:
Pierre-Elliott Bécue 2015-05-14 07:19:56 +02:00
parent 2c27a030ee
commit 4b36a51d99
102 changed files with 513 additions and 703 deletions

View file

@ -6,7 +6,7 @@ info["mode"] = 0644
comment_start = "#"
print """server {
out("""server {
listen 127.0.0.1;
server_name localhost;
location /nginx_status {
@ -14,7 +14,7 @@ print """server {
access_log off;
allow 127.0.0.1;
deny all;
}"""
}""")
if has("php"):
print ' include "snippets/php.conf";'
print "}"
@ include "snippets/php.conf";
@}

View file

@ -40,14 +40,14 @@ if has("icecast"):
else:
body = base
print """server {
out("""server {
listen 80; ## listen for ipv4; this line is default and implied
listen [::]:80 default_server ipv6only=on; ## listen for ipv6%s
}""" % body
}""" % (body,))
print """# HTTPS server
out("""# HTTPS server
#
server {
listen 443;
@ -58,4 +58,4 @@ server {
ssl_certificate_key /etc/ssl/crans/cochon.ferme.crans.org/xid=33/key.pem;
ssl_session_timeout 5m;%s
}""" % body
}""" % (body,))