Explorar el Código

Make optional arguments to fetch kwarg-only

master
JustAnotherArchivist hace 3 años
padre
commit
ce7f8fdc92
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      qwarc/__init__.py

+ 1
- 1
qwarc/__init__.py Ver fichero

@@ -73,7 +73,7 @@ class Item:
out.append((key, value)) out.append((key, value))
return out return out


async def fetch(self, url, responseHandler = None, method = 'GET', data = None, headers = [], verify_ssl = True, timeout = 60, fromResponse = None):
async def fetch(self, url, *, responseHandler = None, method = 'GET', data = None, headers = [], verify_ssl = True, timeout = 60, fromResponse = None):
''' '''
HTTP GET or POST a URL HTTP GET or POST a URL




Cargando…
Cancelar
Guardar