We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23f27f4 commit a566b48Copy full SHA for a566b48
pydateparser/date_parser.py
@@ -18,10 +18,10 @@ class DateParser:
18
locale = attr.ib(default=None, validator=_date_format_type_validator)
19
20
def __attrs_post_init__(self):
21
- object.__setattr__(self, "locale", self.date_format_handler(self.locale))
+ object.__setattr__(self, "locale", self._date_format_handler(self.locale))
22
23
@staticmethod
24
- def date_format_handler(locale):
+ def _date_format_handler(locale):
25
if locale == None:
26
return DateFormats.locale.get('USA')
27
elif locale != None and isinstance(locale, str) and locale in DateFormats.locale.keys():
0 commit comments