Skip to content

Commit 9d17172

Browse files
mportesdevsebastinas
authored andcommitted
Fix Python 2.7 TypeError
1 parent 13dabf8 commit 9d17172

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/test/test_history.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def setUp(self):
9494

9595
with io.open(self.filename, 'w', encoding=self.encoding,
9696
errors='ignore') as f:
97-
f.write('#1\n#2\n')
97+
f.write(b'#1\n#2\n'.decode())
9898

9999
def test_load(self):
100100
history = History()

0 commit comments

Comments
 (0)