mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 21:33:13 -07:00
PEP8: comparison to None
, True
, or False
should use is
/is not
This commit is contained in:
parent
8cd0e76ef8
commit
92ae852513
5 changed files with 11 additions and 11 deletions
|
@ -1110,7 +1110,7 @@ def extractFiles(src, dst=None, keep_archive=None):
|
|||
fullFileName = os.path.basename(inputFile)
|
||||
archiveName = os.path.splitext(fullFileName)[0]
|
||||
archiveName = re.sub(r"part[0-9]+", "", archiveName)
|
||||
if not archiveName in extracted_archive or keep_archive == True:
|
||||
if not archiveName in extracted_archive or keep_archive is True:
|
||||
continue # don't remove if we haven't extracted this archive, or if we want to preserve them.
|
||||
logger.info("Removing extracted archive %s from folder %s ..." % (fullFileName, folder))
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue