Skip to content

Commit

Permalink
fix pyicu import to suppress warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-from-quantrocket authored Mar 27, 2020
1 parent 655783d commit 1883750
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions parsedatetime/pdt_locales/icu.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@
pass

try:
import PyICU as pyicu
import icu as pyicu

This comment has been minimized.

Copy link
@miettal

miettal Jun 1, 2020

this import was failed in my environment.

in this context, icu = icu.py

This comment has been minimized.

Copy link
@tonyg

tonyg Jun 3, 2020

Contributor

Likewise, on python.2.7.17.

This comment has been minimized.

Copy link
@RichardBradley

RichardBradley Jun 15, 2020

I had the same issue and raised #251

This comment has been minimized.

Copy link
@tonyg

tonyg Jul 16, 2020

Contributor

FTR: See #247 for a PR that fixes this problem. (cf issues #245, #246, #248 and Richard's #251).

except ImportError:
pyicu = None
try:
import PyICU as pyicu
except ImportError:
pyicu = None


def icu_object(mapping):
Expand Down

0 comments on commit 1883750

Please sign in to comment.