| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b5d7790 commit a4038cd
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -322,15 +322,14 @@ def tearDown(self): | |||
| 322 | 322 | self.startupfile.__exit__(None, None, None) | |
| 323 | 323 | del os.environ['PYTHONSTARTUP'] | |
| 324 | 324 | ||
| 325 | - def write_startup_file(self, encoding, write_encoding=True): | ||
| 325 | + def write_startup_file(self, encoding): | ||
| 326 | 326 | with io.open(self.startupfile.name, mode='wt', | |
| 327 | 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') | ||
| 328 | + f.write('# coding: ') | ||
| 329 | + f.write(encoding) | ||
| 330 | + f.write('\n') | ||
| 331 | + f.write('from __future__ import unicode_literals\n') | ||
| 332 | + f.write('a = "äöü"\n') | ||
| 334 | 333 | ||
| 335 | 334 | def test_startup_event_utf8(self): | |
| 336 | 335 | self.write_startup_file('utf-8') | |
| Back | FazBrowse Home | New Git URL |
0 commit comments