Skip to content

Commit 03fd097

Browse files
author
Kuniwak
committed
Make pprint friendly
pprint can not work when __getattribute__ is overwrited. Instead, use __getattr__.
1 parent cc8488d commit 03fd097

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

py/vimlfunc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def main():
1313
print(line)
1414

1515
class AttributeDict(dict):
16-
__getattribute__ = dict.__getitem__
16+
__getattr__ = dict.__getitem__
1717
__setattr__ = dict.__setitem__
1818
__delattr__ = dict.__delitem__
1919

py/vimlparser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def main():
1313
print(line)
1414

1515
class AttributeDict(dict):
16-
__getattribute__ = dict.__getitem__
16+
__getattr__ = dict.__getitem__
1717
__setattr__ = dict.__setitem__
1818
__delattr__ = dict.__delitem__
1919

0 commit comments

Comments
 (0)