Align quotes coding style to double (#3263)

This commit is contained in:
Alex Pulver 2017-05-17 22:36:01 +03:00 committed by John Mulhausen
parent 102c00e071
commit 487bcdaf58
1 changed files with 2 additions and 2 deletions

View File

@ -116,14 +116,14 @@ app = Flask(__name__)
@app.route("/")
def hello():
try:
visits = redis.incr('counter')
visits = redis.incr("counter")
except RedisError:
visits = "<i>cannot connect to Redis, counter disabled</i>"
html = "<h3>Hello {name}!</h3>" \
"<b>Hostname:</b> {hostname}<br/>" \
"<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__":
app.run(host='0.0.0.0', port=80)