mirror of
https://github.com/lutris/lutris
synced 2024-11-02 11:48:38 +00:00
Placate flake8!
Every single change is just whitespace. Python!
This commit is contained in:
parent
abe812384b
commit
59abef7f69
5 changed files with 6 additions and 4 deletions
|
@ -14,6 +14,7 @@ from lutris.util.system import get_md5_hash, get_md5_in_zip
|
|||
from lutris.util.strings import slugify
|
||||
from lutris.services.lutris import download_lutris_media
|
||||
|
||||
|
||||
class ImportGameDialog(ModalDialog):
|
||||
def __init__(self, files, parent=None) -> None:
|
||||
super().__init__(
|
||||
|
|
|
@ -42,7 +42,7 @@ DEFAULT_INSTALLERS = {
|
|||
},
|
||||
"atari2600": {
|
||||
"runner": "stella",
|
||||
"game": {"main_file": "rom" }
|
||||
"game": {"main_file": "rom"}
|
||||
},
|
||||
"lynx": {
|
||||
"runner": "libretro",
|
||||
|
|
|
@ -46,6 +46,7 @@ PLATFORM_PATTERNS = {
|
|||
"CD-i": "cdi",
|
||||
}
|
||||
|
||||
|
||||
def search_tosec_by_md5(md5sum):
|
||||
"""Retrieve a lutris bundle from the API"""
|
||||
if not md5sum:
|
||||
|
@ -147,7 +148,7 @@ def clean_rom_name(name):
|
|||
good_index = i
|
||||
if c in ("(", "]"):
|
||||
in_parens = False
|
||||
name = name[:len(name)-good_index].strip()
|
||||
name = name[:len(name) - good_index].strip()
|
||||
if name.endswith(", The"):
|
||||
name = "The " + name[:-5]
|
||||
return name
|
||||
|
|
|
@ -170,7 +170,6 @@ def get_md5_hash(filename):
|
|||
return _hash
|
||||
|
||||
|
||||
|
||||
def read_file_md5(filedesc):
|
||||
md5 = hashlib.md5()
|
||||
for chunk in iter(lambda: filedesc.read(8192), b""):
|
||||
|
|
|
@ -52,6 +52,7 @@ class ModDBHelperTests(unittest.TestCase):
|
|||
def test_ctor_custom_method(self):
|
||||
if SKIP_TESTS:
|
||||
return
|
||||
|
||||
def custom():
|
||||
pass
|
||||
hlpr = ModDB(parse_page_method=custom)
|
||||
|
|
Loading…
Reference in a new issue