Skip to content

Commit

Permalink
Fix import line in adaptation example
Browse files Browse the repository at this point in the history
- Add missing import `provides`.
- Remove unused import `implements`.
- Reformat to avoid long lines.
  • Loading branch information
mdickinson committed Mar 31, 2014
1 parent 9469812 commit 48ba0f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/source/traits_user_manual/advanced.rst
Expand Up @@ -857,7 +857,8 @@ For example, a Traits object can be written against the ``IPrintable``
interface and be open to extensions by adaptation as follows:
::

from traits.api import Adapter, HasTraits, implements, Interface, List, register_factory, Str, Supports
from traits.api import (Adapter, HasTraits, Interface, List, provides,
register_factory, Str, Supports)

class IPrintable(Interface):
def get_formatted_text(self, n_cols):
Expand Down

0 comments on commit 48ba0f4

Please sign in to comment.