Skip to content

Commit

Permalink
Merge pull request #841 from BLKSerene/dev
Browse files Browse the repository at this point in the history
Add tzdata as a dependency on Windows
  • Loading branch information
wannaphong authored Sep 24, 2023
2 parents 9b9b7f0 + e9f2f32 commit 28594c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pythainlp/util/date.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
["ธันวาคม", "ธันวา", "ธ.ค.", "12"]
]
thai_full_month_lists_regex = "(" + '|'.join(
[str('|'.join([j for j in i])) for i in thai_full_month_lists]
['|'.join(i) for i in thai_full_month_lists]
) + ")"
year_all_regex = r"(\d\d\d\d|\d\d)"
dates_list = "(" + '|'.join(
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@

requirements = [
"requests>=2.22.0",
"backports.zoneinfo; python_version<'3.9'"
"backports.zoneinfo; python_version<'3.9'",
"tzdata; sys_platform == 'win32'"
]

extras = {
Expand Down

0 comments on commit 28594c2

Please sign in to comment.