mirror of https://github.com/docker/docs.git
Align quotes coding style to double (#3263)
This commit is contained in:
parent
102c00e071
commit
487bcdaf58
|
@ -116,14 +116,14 @@ app = Flask(__name__)
|
||||||
@app.route("/")
|
@app.route("/")
|
||||||
def hello():
|
def hello():
|
||||||
try:
|
try:
|
||||||
visits = redis.incr('counter')
|
visits = redis.incr("counter")
|
||||||
except RedisError:
|
except RedisError:
|
||||||
visits = "<i>cannot connect to Redis, counter disabled</i>"
|
visits = "<i>cannot connect to Redis, counter disabled</i>"
|
||||||
|
|
||||||
html = "<h3>Hello {name}!</h3>" \
|
html = "<h3>Hello {name}!</h3>" \
|
||||||
"<b>Hostname:</b> {hostname}<br/>" \
|
"<b>Hostname:</b> {hostname}<br/>" \
|
||||||
"<b>Visits:</b> {visits}"
|
"<b>Visits:</b> {visits}"
|
||||||
return html.format(name=os.getenv('NAME', "world"), hostname=socket.gethostname(), visits=visits)
|
return html.format(name=os.getenv("NAME", "world"), hostname=socket.gethostname(), visits=visits)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
app.run(host='0.0.0.0', port=80)
|
app.run(host='0.0.0.0', port=80)
|
||||||
|
|
Loading…
Reference in New Issue