def _maybe_process_deprecations(r, how=None, fill_method=None, limit=None):
if how is not None:<EOL><INDENT>if isinstance(how, str):<EOL><INDENT>method = "<STR_LIT>".format(how)<EOL><DEDENT>else:<EOL><INDENT>method = "<STR_LIT>"<EOL><DEDENT>if fill_method is None:<EOL><INDENT>warnings.warn("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>".format(<EOL>method=method),<EOL>FutureWarning, stacklevel=<NUM_LIT:3>)<EOL><DEDENT>r = r.aggregate(how)<EOL><DEDENT>if fill_method is not None:<EOL><INDENT>method = '<STR_LIT:.>' + method if how is not None else '<STR_LIT>'<EOL>args = "<STR_LIT>".format(limit) if limit is not None else "<STR_LIT>"<EOL>warnings.warn("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>".format(<EOL>method=method,<EOL>fill_method=fill_method,<EOL>args=args),<EOL>FutureWarning, stacklevel=<NUM_LIT:3>)<EOL>if how is not None:<EOL><INDENT>r = getattr(r, fill_method)(limit=limit)<EOL><DEDENT>else:<EOL><INDENT>r = r.aggregate(fill_method, limit=limit)<EOL><DEDENT><DEDENT>return r<EOL>
Potentially we might have a deprecation warning, show it
but call the appropriate methods anyhow.