Fix some indent.

This commit is contained in:
k2font 2020-04-14 20:18:21 +09:00
parent 23f4e3a045
commit dd1ca71957

View file

@ -20,9 +20,7 @@ def auth(client_id, client_secret):
"clientSecret": client_secret "clientSecret": client_secret
} }
r = requests.post(token_url, r = requests.post(token_url,headers=headers,data=json.dumps(data))
headers=headers,
data=json.dumps(data))
return r.json()["access_token"] return r.json()["access_token"]
@ -43,9 +41,7 @@ def parse(sentence, access_token):
"type": "default" "type": "default"
} }
r = requests.post(base_url + "v1/parse", r = requests.post(base_url + "v1/parse",headers=headers,data=json.dumps(data))
headers=headers,
data=json.dumps(data))
return r.json() return r.json()
# ひらがなを削除する関数 # ひらがなを削除する関数