Pārlūkot izejas kodu

Trying to make the code clearer

master
Dimitri Merejkowsky pirms 5 gadiem
vecāks
revīzija
785a137547
1 mainītis faili ar 2 papildinājumiem un 3 dzēšanām
  1. +2
    -3
      sources/marvel/marvel.py

+ 2
- 3
sources/marvel/marvel.py Parādīt failu

@@ -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: