mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	Use character instead of byte strings
This commit is contained in:
		| @@ -180,7 +180,8 @@ class FileDownloader(object): | ||||
|  | ||||
| 	def to_stderr(self, message): | ||||
| 		"""Print message to stderr.""" | ||||
| 		print >>sys.stderr, message.encode(preferredencoding()) | ||||
| 		assert type(message) == type(u'') | ||||
| 		sys.stderr.write((message + u'\n').encode(preferredencoding())) | ||||
|  | ||||
| 	def to_cons_title(self, message): | ||||
| 		"""Set console/terminal window title to message.""" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Philipp Hagemeister
					Philipp Hagemeister