Преглед изворни кода

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



Loading…
Откажи
Сачувај