mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	Fix W504 and disable W503 (closes #20863)
This commit is contained in:
		| @@ -330,15 +330,15 @@ class FileDownloader(object): | ||||
|         """ | ||||
|  | ||||
|         nooverwrites_and_exists = ( | ||||
|             self.params.get('nooverwrites', False) and | ||||
|             os.path.exists(encodeFilename(filename)) | ||||
|             self.params.get('nooverwrites', False) | ||||
|             and os.path.exists(encodeFilename(filename)) | ||||
|         ) | ||||
|  | ||||
|         if not hasattr(filename, 'write'): | ||||
|             continuedl_and_exists = ( | ||||
|                 self.params.get('continuedl', True) and | ||||
|                 os.path.isfile(encodeFilename(filename)) and | ||||
|                 not self.params.get('nopart', False) | ||||
|                 self.params.get('continuedl', True) | ||||
|                 and os.path.isfile(encodeFilename(filename)) | ||||
|                 and not self.params.get('nopart', False) | ||||
|             ) | ||||
|  | ||||
|             # Check file already present | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Sergey M․
					Sergey M․