bear / parsedatetime

Parse human-readable date/time strings
Apache License 2.0
694 stars 107 forks source link

fix pyicu import to suppress warnings #242

Closed brian-from-quantrocket closed 4 years ago

brian-from-quantrocket commented 4 years ago

Newer versions of pyicu should be imported as

import icu 

whereas

import PyICU 

will print a warning.

This fix uses the preferred import if available and otherwise falls back to the older name.


This change is Reviewable

bear commented 4 years ago

Thanks for the fix