mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-03-26 19:01:28 -04:00
fix C0207 use-maxsplit-arg
This commit is contained in:
@@ -183,7 +183,7 @@ def get_default_cachedir():
|
||||
removed.
|
||||
|
||||
"""
|
||||
appname = __name__.split('.')[0]
|
||||
appname = __name__.split('.', maxsplit=1)[0]
|
||||
try:
|
||||
import platformdirs
|
||||
|
||||
|
||||
@@ -1420,9 +1420,9 @@ def parse_ios_screenshot_name(path):
|
||||
s = path.stem.split('@')
|
||||
if len(s) >= 2:
|
||||
if "iphone" in s[0].lower():
|
||||
return ("phoneScreenshots", s[0].strip(), ('@'.join(s[1:])).split('-')[0].strip())
|
||||
return ("phoneScreenshots", s[0].strip(), ('@'.join(s[1:])).split('-', maxsplit=1)[0].strip())
|
||||
elif "ipad" in s[0].lower():
|
||||
return ("tenInchScreenshots", s[0].strip(), ('@'.join(s[1:])).split('-')[0].strip())
|
||||
return ("tenInchScreenshots", s[0].strip(), ('@'.join(s[1:])).split('-', maxsplit=1)[0].strip())
|
||||
else:
|
||||
fragments = path.stem.lower().split("_")
|
||||
device = "unknown"
|
||||
|
||||
Reference in New Issue
Block a user