Spring cleanup
This commit is contained in:
@@ -43,8 +43,8 @@ class Plugin(object):
|
||||
http_failed_disabled = {}
|
||||
http_opener = requests.Session()
|
||||
|
||||
def __new__(typ, *args, **kwargs):
|
||||
new_plugin = super(Plugin, typ).__new__(typ)
|
||||
def __new__(cls, *args, **kwargs):
|
||||
new_plugin = super(Plugin, cls).__new__(cls)
|
||||
new_plugin.registerPlugin()
|
||||
|
||||
return new_plugin
|
||||
@@ -329,7 +329,7 @@ class Plugin(object):
|
||||
elif data.get('password'):
|
||||
tag += '{{%s}}' % data.get('password')
|
||||
|
||||
max_length = 127 - len(tag) # Some filesystems don't support 128+ long filenames
|
||||
max_length = 127 - len(tag) # Some filesystems don't support 128+ long filenames
|
||||
return '%s%s' % (toSafeString(toUnicode(release_name)[:max_length]), tag)
|
||||
|
||||
def createFileName(self, data, filedata, media):
|
||||
@@ -349,6 +349,7 @@ class Plugin(object):
|
||||
now = time.time()
|
||||
file_too_new = False
|
||||
|
||||
file_time = []
|
||||
for cur_file in files:
|
||||
|
||||
# File got removed while checking
|
||||
|
||||
Reference in New Issue
Block a user