def np_array_datetime64_compat(arr, *args, **kwargs):
<EOL>if (hasattr(arr, '<STR_LIT>') and not isinstance(arr, (str, bytes))):<EOL><INDENT>arr = [tz_replacer(s) for s in arr]<EOL><DEDENT>else:<EOL><INDENT>arr = tz_replacer(arr)<EOL><DEDENT>return np.array(arr, *args, **kwargs)<EOL>
provide compat for construction of an array of strings to a
np.array(..., dtype=np.datetime64(..))
tz-changes in 1.11 that make '2015-01-01 09:00:00Z' show a deprecation
warning, when need to pass '2015-01-01 09:00:00'