At the moment, apptools.undo defines all of the relevant classes but raises a deprecating warning - and recommends users to use pyface.undo instead of the relevant apptools.undo modules.
While this is a good place to start, this is not enough. What we really want is to remove all definitions of classes from apptools.undo modules and simply import them from pyface.undo. This will ensure that the code remains backwards compatible if projects use apptools.undo.* objects together with pyface.undo.* objects, making it easy to update their imports.
At the moment,
apptools.undo
defines all of the relevant classes but raises a deprecating warning - and recommends users to usepyface.undo
instead of the relevantapptools.undo
modules.While this is a good place to start, this is not enough. What we really want is to remove all definitions of classes from
apptools.undo
modules and simply import them frompyface.undo
. This will ensure that the code remains backwards compatible if projects useapptools.undo.*
objects together withpyface.undo.*
objects, making it easy to update their imports.