Skip to content

Commit 29d6f87

Browse files
committed
Fix definition of write
1 parent c1f0385 commit 29d6f87

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

bpython/test/test_interpreter.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ class Interpreter(interpreter.Interp):
1212
def __init__(self):
1313
super().__init__()
1414
self.a = []
15-
16-
def write(self, data):
17-
self.a.append(data)
15+
self.write = self.a.append
1816

1917

2018
class TestInterpreter(unittest.TestCase):

0 commit comments

Comments
 (0)