mirror of
https://github.com/beetbox/beets.git
synced 2026-02-10 17:34:05 +01:00
Finalized linting changes
In the fetch_text method (line ~207):
if not r.encoding:
r.encoding = "utf-8" # ← Double quotes!
In the scrape method, make sure there are 2 blank lines before the next class:
return None
class Tekstowo(SearchBackend): # ← Two blank lines above
That should pass the formatting check! The repo follows PEP 8 style (double quotes, 2 blank lines between classes).
This commit is contained in:
parent
b8311915a6
commit
3f56d952da
1 changed files with 1 additions and 1 deletions
|
|
@ -204,7 +204,7 @@ class LyricsRequestHandler(RequestHandler):
|
|||
but default to UTF-8 if not specified
|
||||
"""
|
||||
if not r.encoding:
|
||||
r.encoding = 'utf-8'
|
||||
r.encoding = "utf-8"
|
||||
return r.text
|
||||
|
||||
def get_json(self, url: str, params: JSONDict | None = None, **kwargs):
|
||||
|
|
|
|||
Loading…
Reference in a new issue