Merge pull request #3 from nvllsvm/dev

Remove unnecessary from README
This commit is contained in:
Gavin M. Roy 2017-10-24 11:53:06 -04:00 committed by GitHub
commit ca977563ad

View file

@ -50,11 +50,10 @@ This examples demonstrates the most basic usage of ``sprockets.mixins.http``
if not response.ok:
self.set_status(response.code)
self.write(response.body)
self.finish()
if __name__ == "__main__":
app = web.Application([web.url(r'/', RequestHandler)])
app = web.Application([(r'/', RequestHandler)])
app.listen(8000)
ioloop.IOLoop.current().start()
@ -78,11 +77,10 @@ As with Tornado, to use the curl client which has numerous benefits:
if not response.ok:
self.set_status(response.code)
self.write(response.body)
self.finish()
if __name__ == "__main__":
app = web.Application([web.url(r'/', RequestHandler)])
app = web.Application([(r'/', RequestHandler)])
app.listen(8000)
ioloop.IOLoop.current().start()