1. biolab
  2. Untitled project
  3. orange

Commits

Aleš Erjavec  committed f819448

Fixed deprecation warnings in OWBaseWidget.

  • Participants
  • Parent commits a19cbfc
  • Branches default

Comments (0)

Files changed (1)

File Orange/OrangeWidgets/OWBaseWidget.py

View file
 
 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)"),