-
Type: New Feature
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
Now that Motor supports asyncio, arrange for Motor to work without Tornado installed.
Plan: Move contents of motor/__init__.py into motor/motor_tornado.py, and make it the officially supported idiom for users to do imports like this:
from motor.motor_tornado import MotorClient
For 0.5, continue supporting the old style to import Motor's Tornado classes like:
from motor import MotorClient
motor/__init__.py will just do:
try: import tornado except ImportError: pass else: from motor.motor_tornado import *
Post a big deprecation warning in the docs.
- is depended on by
-
MOTOR-40 Support asyncio
- Closed