Browse Source

861 removed open_sync

open_sync function in Motor 0.3 is deprecated,
removed.
James Yen 11 years ago
parent
commit
02f839c09b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tornado/server.py

+ 1 - 1
tornado/server.py

@@ -85,5 +85,5 @@ if __name__ == "__main__":
     server = tornado.httpserver.HTTPServer(application)
     server.bind(options.port)
     server.start(0)
-    db = motor.MotorClient(options.mongo).open_sync().hello_world
+    db = motor.MotorClient(options.mongo).hello_world
     tornado.ioloop.IOLoop.instance().start()