We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f6314d commit e368ab2Copy full SHA for e368ab2
.gitignore
@@ -1,5 +1,6 @@
1
*_dis
2
*~
3
+*.pyc
4
/.cache
5
/.eggs
6
/.python-version
uncompyle6/parsers/astnode.py
@@ -34,5 +34,9 @@ def __hash__(self):
34
def __repr__(self, indent=''):
35
rv = str(self.type)
36
for k in self:
37
- rv = rv + '\n' + str(k).replace('\n', '\n ')
+ child_text = str(k).replace('\n', '\n ')
38
+ if hasattr(k, '__len__'):
39
+ rv += '\n(%d) %s' % (len(k), child_text)
40
+ else:
41
+ rv += '\n' + child_text
42
return rv
0 commit comments