Skip to content

Commit

Permalink
Added PrettyPrinter repr to AttrTree
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Feb 23, 2015
1 parent f56fc1a commit 0951f42
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions holoviews/core/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
except:
from collections import OrderedDict

from .pprint import PrettyPrinter
from .util import valid_identifier


Expand Down Expand Up @@ -249,3 +250,7 @@ def pop(self, identifier, default=None):
return item
else:
return default


def __repr__(self):
return PrettyPrinter.pprint(self)

0 comments on commit 0951f42

Please sign in to comment.