mirror of
				https://github.com/ytdl-org/youtube-dl.git
				synced 2025-10-29 09:26:20 -07:00 
			
		
		
		
	Simplify a statement
This commit is contained in:
		| @@ -179,10 +179,7 @@ class FileDownloader(object): | |||||||
| 	def to_stdout(self, message, skip_eol=False): | 	def to_stdout(self, message, skip_eol=False): | ||||||
| 		"""Print message to stdout if not in quiet mode.""" | 		"""Print message to stdout if not in quiet mode.""" | ||||||
| 		if not self._params.get('quiet', False): | 		if not self._params.get('quiet', False): | ||||||
| 			if skip_eol: | 			print u'%s%s' % (message, [u'\n', u''][skip_eol]), | ||||||
| 				print message, |  | ||||||
| 			else: |  | ||||||
| 				print message |  | ||||||
| 			sys.stdout.flush() | 			sys.stdout.flush() | ||||||
| 	 | 	 | ||||||
| 	def to_stderr(self, message): | 	def to_stderr(self, message): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user