Commit ae0b8fb0 authored by mouadh's avatar mouadh

format

parent 5d798833
......@@ -28,4 +28,4 @@ class User(db.Model, UserMixin):
return User.query.filter_by(username=username).first()
def __repr__(self):
return '<User %r>' % self.username
return '<User {}>'.format(self.username)
......@@ -65,7 +65,7 @@ class WSGIServer:
def url(self):
host, port = self.server_address
proto = 'http' if self._server.ssl_context is None else 'https'
return '%s://%s:%i' % (proto, host, port)
return '{0}://{1}:{2}'.format(proto, host, port)
@pytest.fixture(scope="function")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment