Remove redundant web.url

This commit is contained in:
Andrew Rabert 2018-12-04 23:08:05 -05:00
parent 68257e41f0
commit c54501a7f4
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@ class SimpleHandler(content.ContentMixin, web.RequestHandler):
def make_application(**settings):
application = web.Application([web.url(r'/', SimpleHandler)], **settings)
application = web.Application([('/', SimpleHandler)], **settings)
content.set_default_content_type(application, 'application/json',
encoding='utf-8')
content.add_transcoder(application, transcoders.MsgPackTranscoder())

View file

@ -77,7 +77,7 @@ class ContentSettings:
self.write(response_body)
def make_application():
app = web.Application([web.url('/', SomeHandler)])
app = web.Application([('/', SomeHandler)])
add_binary_content_type(app, 'application/msgpack',
msgpack.packb, msgpack.unpackb)
add_text_content_type(app, 'application/json', 'utf-8',