瀏覽代碼

861 removed open_sync

open_sync function in Motor 0.3 is deprecated,
removed.
James Yen 11 年之前
父節點
當前提交
02f839c09b
共有 1 個文件被更改,包括 1 次插入1 次删除
  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()