original_docstring: Process query parameters given as dictionary
docstring: Process query parameters given as dictionary
docstring_tokens: Process query parameters given as dictionary
code: def _process_params_dict(self, params):
          """Process query parameters given as dictionary"""
          try:
              to_mysql = self._connection.converter.to_mysql
              escape = self._connection.converter.escape
              quote = self._connection.converter.quote
              res = {}
              for key, value in list(params.items()):
                  conv = value
                  conv = to_mysql(conv)
                  conv = escape(conv)
                  conv = quote(conv)
                  if PY2:
                      res["%({0})s".format(key)] = conv
                  else:
                      res["%({0})s".format(key).encode()] = conv
          except Exception as err:
              raise errors.ProgrammingError(
                  "Failed processing pyformat-parameters; %s" % err)
          else:
              return res
code_tokens: def _process_params_dict ( self , params ) : try : to_mysql = self . _connection . converter . to_mysql escape = self . _connection . converter . escape quote = self . _connection . converter . quote res = { } for key , value in list ( params . items ( ) ) : conv = value conv = to_mysql ( conv ) conv = escape ( conv ) conv = quote ( conv ) if PY2 : res [ "%({0})s" . format ( key ) ] = conv else : res [ "%({0})s" . format ( key ) . encode ( ) ] = conv except Exception as err : raise errors . ProgrammingError ( "Failed processing pyformat-parameters; %s" % err ) else : return res
short_docstring: Process query parameters given as dictionary
short_docstring_tokens: Process query parameters given as dictionary
comment: """Process query parameters given as dictionary"""