From 2bd4c2b6795a7ca51133c557e770211b499c18bc Mon Sep 17 00:00:00 2001 From: Mark Dickinson Date: Thu, 16 Jan 2020 08:52:45 +0000 Subject: [PATCH] Import from traits.api instead of from traits.has_traits For safety against future Traits internal refactors, import from traits.api whenever possible. --- examples/user_guide/plot_types/plot_window.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/user_guide/plot_types/plot_window.py b/examples/user_guide/plot_types/plot_window.py index 8e6d0a28a..168df009c 100644 --- a/examples/user_guide/plot_types/plot_window.py +++ b/examples/user_guide/plot_types/plot_window.py @@ -1,8 +1,7 @@ from chaco.api import PlotComponent from chaco.data_view import DataView from enable.component_editor import ComponentEditor -from traits.api import HasTraits, Instance -from traits.has_traits import on_trait_change +from traits.api import HasTraits, Instance, on_trait_change from traitsui.api import Item, View class PlotWindow(HasTraits):