We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5d7790 commit a4038cdCopy full SHA for a4038cd
bpython/test/test_curtsies_repl.py
@@ -322,15 +322,14 @@ def tearDown(self):
322
self.startupfile.__exit__(None, None, None)
323
del os.environ['PYTHONSTARTUP']
324
325
- def write_startup_file(self, encoding, write_encoding=True):
+ def write_startup_file(self, encoding):
326
with io.open(self.startupfile.name, mode='wt',
327
encoding=encoding) as f:
328
- if write_encoding:
329
- f.write('# coding: ')
330
- f.write(encoding)
331
- f.write('\n')
332
- f.write('from __future__ import unicode_literals\n')
333
- f.write('a = "äöü"\n')
+ f.write('# coding: ')
+ f.write(encoding)
+ f.write('\n')
+ f.write('from __future__ import unicode_literals\n')
+ f.write('a = "äöü"\n')
334
335
def test_startup_event_utf8(self):
336
self.write_startup_file('utf-8')
0 commit comments