瀏覽代碼

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…
取消
儲存