Skip to content

Commit a566b48

Browse files
committed
date_format_handler -> _date_format_handler
1 parent 23f27f4 commit a566b48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pydateparser/date_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ class DateParser:
1818
locale = attr.ib(default=None, validator=_date_format_type_validator)
1919

2020
def __attrs_post_init__(self):
21-
object.__setattr__(self, "locale", self.date_format_handler(self.locale))
21+
object.__setattr__(self, "locale", self._date_format_handler(self.locale))
2222

2323
@staticmethod
24-
def date_format_handler(locale):
24+
def _date_format_handler(locale):
2525
if locale == None:
2626
return DateFormats.locale.get('USA')
2727
elif locale != None and isinstance(locale, str) and locale in DateFormats.locale.keys():

0 commit comments

Comments
 (0)