updated examples

This commit is contained in:
@robintiwari 2017-02-15 22:11:16 -06:00 committed by GitHub
parent 53a365dd2b
commit d13af4bdc4

View File

@ -4,13 +4,10 @@ pymongo==3.4.0
motor==1.1 motor==1.1
sanic==0.2.0 sanic==0.2.0
""" """
import asyncio
import uvloop
from sanic import Sanic from sanic import Sanic
from sanic.response import json from sanic.response import json
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
app = Sanic('motor_mongodb') app = Sanic('motor_mongodb')