Skip to content

Commit

Permalink
Fixes ImportError on Python 3.
Browse files Browse the repository at this point in the history
Without this relative import Python 3 will try to import 'classify', etc. from
the langid module (instead of the langid.py file) because absolute imports
are now a default.
  • Loading branch information
martinth committed Apr 29, 2015
1 parent 600f530 commit 6dbb832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion langid/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from langid import classify, rank, set_languages
from .langid import classify, rank, set_languages

0 comments on commit 6dbb832

Please sign in to comment.