Преглед на файлове

Make optional arguments to fetch kwarg-only

master
JustAnotherArchivist преди 3 години
родител
ревизия
ce7f8fdc92
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. +1
    -1
      qwarc/__init__.py

+ 1
- 1
qwarc/__init__.py Целия файл

@@ -73,7 +73,7 @@ class Item:
out.append((key, value))
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



Зареждане…
Отказ
Запис