Commits

Aleš Erjavec committed f819448

Fixed deprecation warnings in OWBaseWidget.

Comments (0)

Files changed (1)

Orange/OrangeWidgets/OWBaseWidget.py

 
 def _deprecation_warning(name):
     warnings.warn(
-        "{0!r} is deprecated. It will be removed in Orange 2.8",
+        "{0!r} is deprecated. It will be removed in Orange 2.8".format(name),
         DeprecationWarning,
         stacklevel=2
     )
         if changed:
             if self.widgetStateHandler:
                 self.widgetStateHandler()
-            elif text: # and stateType != "Info":
-                self.printEvent(stateType + " - " + text)
-            
+            elif text:
+                _log.info(stateType + " - " + text)
+
             if type(id) == list:
                 for i in id:
                     self.emit(SIGNAL("widgetStateChanged(QString, int, QString)"),