Skip to content

Commit

Permalink
Merge pull request #1310 from nltk/alvations-patch-doctests
Browse files Browse the repository at this point in the history
Fixes doctest for python3
  • Loading branch information
stevenbird committed Feb 27, 2016
2 parents a488bb6 + 80b3b1d commit f05bea2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nltk/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1332,8 +1332,9 @@ def as_dict(self, d=None):
>>> from nltk.util import Trie
>>> trie = Trie(["abc", "def"])
>>> trie.as_dict()
{'a': {'b': {'c': {True: None}}}, 'd': {'e': {'f': {True: None}}}}
>>> expected = {'a': {'b': {'c': {True: None}}}, 'd': {'e': {'f': {True: None}}}}
>>> trie.as_dict() == expected
True
"""
def _default_to_regular(d):
Expand Down

0 comments on commit f05bea2

Please sign in to comment.