#NEWLINE# def np_array_datetime64_compat( arr , * args , **kwargs ) : #NEWLINE# #INDENT# "\n    provide compat for construction of an array of strings to a\n    np.array(..., dtype=np.datetime64(..))\n    tz-changes in 1.11 that make '2015-01-01 09:00:00Z' show a deprecation\n    warning, when need to pass '2015-01-01 09:00:00'\n    " #NEWLINE# if ( not _np_version_under1p11 ) : #NEWLINE# #INDENT# if ( hasattr ( arr , '__iter__' ) and ( not isinstance ( arr , string_and_binary_types ) ) ) : #NEWLINE# #INDENT# arr = [ tz_replacer ( s ) for s in arr ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# arr = tz_replacer ( arr ) #NEWLINE# #UNINDENT# #UNINDENT# return np . array ( arr , * s , ** kwargs )