Skip to content

Commit

Permalink
Drop support for EOL Python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Apr 14, 2020
1 parent 258abc5 commit 48f9856
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Installation
============


Make sure you have Python 2.7 or 3.5+ and PyTorch 0.4.0 or newer. You can then install torchtext using pip::
Make sure you have Python 3.5+ and PyTorch 0.4.0 or newer. You can then install torchtext using pip::

pip install torchtext
Expand Down
2 changes: 1 addition & 1 deletion test/test_vocab.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def test_vocab_download_fasttext_vectors(self):
# to test string aliases.
for i in range(3):
if i == 2:
vectors = str("fasttext.simple.300d") # must handle str on Py2
vectors = "fasttext.simple.300d"
else:
vectors = FastText(language='simple')

Expand Down

0 comments on commit 48f9856

Please sign in to comment.