Przeglądaj źródła

Fix newline behavior when loading test files on Windows.

tags/v0.2
Ben 11 lat temu
rodzic
commit
22d7995d9b
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      tests/_test_tokenizer.py

+ 1
- 1
tests/_test_tokenizer.py Wyświetl plik

@@ -109,7 +109,7 @@ class TokenizerTestCase(object):
def build(cls):
"""Load and install all tests from the 'tokenizer' directory."""
def load_file(filename):
with open(filename, "r") as fp:
with open(filename, "rU") as fp:
text = fp.read()
if not py3k:
text = text.decode("utf8")


Ładowanie…
Anuluj
Zapisz