Show More
@@ -1935,5 +1935,11 b' def prettyformat(tree):' | |||
|
1935 | 1935 | output = '\n'.join((' '*l + s) for l, s in lines) |
|
1936 | 1936 | return output |
|
1937 | 1937 | |
|
1938 | def depth(tree): | |
|
1939 | if isinstance(tree, tuple): | |
|
1940 | return max(map(depth, tree)) + 1 | |
|
1941 | else: | |
|
1942 | return 0 | |
|
1943 | ||
|
1938 | 1944 | # tell hggettext to extract docstrings from these functions: |
|
1939 | 1945 | i18nfunctions = symbols.values() |
General Comments 0
You need to be logged in to leave comments.
Login now