瀏覽代碼

Trying to make the code clearer

master
Dimitri Merejkowsky 5 年之前
父節點
當前提交
785a137547
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. +2
    -3
      sources/marvel/marvel.py

+ 2
- 3
sources/marvel/marvel.py 查看文件

@@ -42,9 +42,8 @@ class Client:
def make_request(self, query):
params = self.auth.generate_params()
params.update(query.params())
url = Client.base_url + query.path()
url_query = urllib.parse.urlencode(params)
full_url = url + "?" + url_query
query_string = urllib.parse.urlencode(params)
full_url = Client.base_url + query.path() + "?" + query_string
with urllib.request.urlopen(full_url) as response:
status_code = response.getcode()
if status_code != 200: