Skip to content

Commit

Permalink
doctest fix
Browse files Browse the repository at this point in the history
  • Loading branch information
malb committed Jul 10, 2017
1 parent 37cc3c1 commit 79c54f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fpylll/algorithms/bkz_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,8 @@ def child(self, label):

def __str__(self):
"""
>>> str(Node("root", data={'a':1, 'b': 2}))
>>> from collections import OrderedDict
>>> str(Node("root", data=OrderedDict([('a',1), ('b', 2)])))
'{"root": {"a": 1, "b": 2}}'
"""
return u"{\"%s\": %s}"%(self.label, pretty_dict(self.data))
Expand Down

0 comments on commit 79c54f2

Please sign in to comment.