OSDN Git Service

add warnings
authorousttrue <ousttrue@gmail.com>
Sat, 1 Oct 2011 05:25:22 +0000 (14:25 +0900)
committerousttrue <ousttrue@gmail.com>
Sat, 1 Oct 2011 05:25:22 +0000 (14:25 +0900)
pymeshio/mqo/__init__.py

index e986d42..e00d9ae 100644 (file)
@@ -9,6 +9,7 @@ import sys
 import math\r
 import pymeshio.common\r
 import pymeshio.mqo.loader\r
+import warnings\r
 \r
 \r
 """\r
@@ -231,6 +232,7 @@ class IO(object):
         pass\r
 \r
     def read(self, path):\r
+        warnings.warn("'pymeshio.mqo.IO.read' will be replaced by 'pymeshio.mqo.loader.load'")\r
         model=pymeshio.mqo.loader.load(path)\r
         if model:\r
             self.has_mikoto=model.has_mikoto\r