def _convert_params(sql, params):
args = [sql]<EOL>if params is not None:<EOL><INDENT>if hasattr(params, '<STR_LIT>'):  <EOL><INDENT>args += [params]<EOL><DEDENT>else:<EOL><INDENT>args += [list(params)]<EOL><DEDENT><DEDENT>return args<EOL>
Convert SQL and params args to DBAPI2.0 compliant format.