Skip to content

Commit

Permalink
Convert too long line of User-Agent into shorter python code (#209)
Browse files Browse the repository at this point in the history
* Convert too long line of User-Agent into shorter python code

* Use double quotes for all strings in the BASE_HEADERS

* Fix indentation to match black-formatting

* Fixes an issue with black 22.10.0 builds on MacOS

* Update poetry.lock file
  • Loading branch information
joro75 authored Dec 11, 2022
1 parent ce24f20 commit 0068d70
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 441 deletions.
6 changes: 5 additions & 1 deletion mytoyota/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@
"Accept": "application/json, text/plain, */*",
"Sec-Fetch-Dest": "empty",
"X-TME-BRAND": "TOYOTA",
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36",
"User-Agent": (
"Mozilla/5.0 (X11; Linux x86_64) "
"AppleWebKit/537.36 (KHTML, like Gecko) "
"Chrome/51.0.2704.103 Safari/537.36"
),
}

# Timestamps
Expand Down
Loading

0 comments on commit 0068d70

Please sign in to comment.