Skip to content

Commit

Permalink
removing __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gavishpoddar authored Aug 24, 2021
1 parent b6cbded commit 03a689c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Empty file.
5 changes: 2 additions & 3 deletions dateparser/custom_language_detection/langdetect.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from langdetect.detector_factory import DetectorFactory, PROFILES_DIRECTORY
import langdetect


Expand All @@ -12,8 +11,8 @@ class _Factory:

def _init_factory():
if _Factory.data is None:
_Factory.data = DetectorFactory()
_Factory.data.load_profile(PROFILES_DIRECTORY)
_Factory.data = langdetect.detector_factory.DetectorFactory()
_Factory.data.load_profile(langdetect.detector_factory.PROFILES_DIRECTORY)
_Factory.data.seed = 0


Expand Down
2 changes: 1 addition & 1 deletion tests/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def test_check_settings_extra_check_parsers(self):
):
DateDataParser(settings={'PARSERS': ['absolute-time', 'timestamp', 'absolute-time']})

def test_check_settings_extra_check_confidence_treshold(self):
def test_check_settings_extra_check_confidence_threshold(self):
with self.assertRaisesRegex(
SettingValidationError,
r'1.1 is not a valid value for '
Expand Down

0 comments on commit 03a689c

Please sign in to comment.