Skip to content

Commit 7d835c0

Browse files
author
bob
committed
forgot to initialise a couple of variables in dark magic (sleepy)
1 parent 0bbabde commit 7d835c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bpython/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,8 @@ def attr_matches(self, text):
333333
expr, attr = m.group(1, 3)
334334
obj = eval(expr, self.interp.locals)
335335
type_ = type(obj)
336-
f = None
336+
__getattribute__ = None
337+
__getattr__ = None
337338
# Dark magic:
338339
# If __getattribute__ doesn't exist on the class and __getattr__ does
339340
# then __getattr__ will be called when doing

0 commit comments

Comments
 (0)