Show More
@@ -717,13 +717,13 b' def _ishashlikesymbol(symbol):' | |||||
717 | def gethashlikesymbols(tree): |
|
717 | def gethashlikesymbols(tree): | |
718 | """returns the list of symbols of the tree that look like hashes |
|
718 | """returns the list of symbols of the tree that look like hashes | |
719 |
|
719 | |||
720 |
>>> gethashlikesymbols( |
|
720 | >>> gethashlikesymbols(parse(b'3::abe3ff')) | |
721 | ['3', 'abe3ff'] |
|
721 | ['3', 'abe3ff'] | |
722 |
>>> gethashlikesymbols( |
|
722 | >>> gethashlikesymbols(parse(b'precursors(.)')) | |
723 | [] |
|
723 | [] | |
724 |
>>> gethashlikesymbols( |
|
724 | >>> gethashlikesymbols(parse(b'precursors(34)')) | |
725 | ['34'] |
|
725 | ['34'] | |
726 |
>>> gethashlikesymbols( |
|
726 | >>> gethashlikesymbols(parse(b'abe3ffZ')) | |
727 | [] |
|
727 | [] | |
728 | """ |
|
728 | """ | |
729 | if not tree: |
|
729 | if not tree: |
General Comments 0
You need to be logged in to leave comments.
Login now