def _dict_compat(d):
 return dict(((_maybe_box_datetimelike(key), value) for (key, value) in iteritems(d)))

def _dict_compat ( d ) : return dict ( ( ( _maybe_box_datetimelike ( key ) , value ) for ( key , value ) in iteritems ( d ) ) )
helper function to convert datetimelike-keyed dicts to timestamp-keyed dict parameters d: dict like object returns dict .