1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 10:42:34 +01:00

put argument init on separate lines

This commit is contained in:
Mike Fährmann 2023-02-10 17:05:20 +01:00
parent 2a53e6445c
commit 1aae72773f
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
3 changed files with 13 additions and 6 deletions

View File

@ -793,7 +793,8 @@ class DatabaseCopy():
def __init__(self, path):
self.path = path
self.directory = self.database = None
self.database = None
self.directory = None
def __enter__(self):
try:

View File

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2021-2022 Mike Fährmann
# Copyright 2021-2023 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
@ -73,10 +73,15 @@ class PathFormat():
raise exception.DirectoryFormatError(exc)
self.kwdict = {}
self.directory = self.realdirectory = \
self.filename = self.extension = self.prefix = \
self.path = self.realpath = self.temppath = ""
self.delete = False
self.prefix = ""
self.filename = ""
self.extension = ""
self.directory = ""
self.realdirectory = ""
self.path = ""
self.realpath = ""
self.temppath = ""
extension_map = config("extension-map")
if extension_map is None:

View File

@ -737,7 +737,8 @@ class RangePredicate():
self.lower = min(r.start for r in ranges)
self.upper = max(r.stop for r in ranges) - 1
else:
self.lower = self.upper = 0
self.lower = 0
self.upper = 0
def __call__(self, _url, _kwdict):
self.index = index = self.index + 1