فهرست منبع

warning is now an error

David Rose 22 سال پیش
والد
کامیت
0f357ba02f
2فایلهای تغییر یافته به همراه6 افزوده شده و 6 حذف شده
  1. 3 3
      direct/src/extensions/CInterval-extensions.py
  2. 3 3
      direct/src/interval/Interval.py

+ 3 - 3
direct/src/extensions/CInterval-extensions.py

@@ -15,18 +15,18 @@
         self.privPostEvent()
 
     def play(self, t0 = 0.0, duration = None, scale = 1.0):
-        self.notify.warning("using deprecated CInterval.play() interface")
+        self.notify.error("using deprecated CInterval.play() interface")
         if duration:  # None or 0 implies full length
             self.start(t0, t0 + duration, scale)
         else:
             self.start(t0, -1, scale)
 
     def stop(self):
-        self.notify.warning("using deprecated CInterval.stop() interface")
+        self.notify.error("using deprecated CInterval.stop() interface")
         self.finish()
 
     def setFinalT(self):
-        self.notify.warning("using deprecated CInterval.setFinalT() interface")
+        self.notify.error("using deprecated CInterval.setFinalT() interface")
         self.finish()
 
     def privPostEvent(self):

+ 3 - 3
direct/src/interval/Interval.py

@@ -313,15 +313,15 @@ class Interval(DirectObject):
     # for the CInterval class via the file CInterval-extensions.py.
 
     def play(self, *args, **kw):
-        self.notify.warning("using deprecated Interval.play() interface")
+        self.notify.error("using deprecated Interval.play() interface")
         self.start(*args, **kw)
 
     def stop(self):
-        self.notify.warning("using deprecated Interval.stop() interface")
+        self.notify.error("using deprecated Interval.stop() interface")
         self.finish()
 
     def setFinalT(self):
-        self.notify.warning("using deprecated Interval.setFinalT() interface")
+        self.notify.error("using deprecated Interval.setFinalT() interface")
         self.finish()
 
     def privPostEvent(self):