mirror of
				https://github.com/RicterZ/nhentai.git
				synced 2025-11-04 02:50:55 +01:00 
			
		
		
		
	fix bug in logger
This commit is contained in:
		@@ -4,11 +4,11 @@
 | 
			
		||||
from __future__ import print_function, unicode_literals
 | 
			
		||||
import logging
 | 
			
		||||
import re
 | 
			
		||||
import subprocess
 | 
			
		||||
import platform
 | 
			
		||||
import sys
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if subprocess.mswindows:
 | 
			
		||||
if platform.system() == 'Windows':
 | 
			
		||||
    import ctypes
 | 
			
		||||
    import ctypes.wintypes
 | 
			
		||||
 | 
			
		||||
@@ -49,7 +49,7 @@ class ColorizingStreamHandler(logging.StreamHandler):
 | 
			
		||||
        isatty = getattr(self.stream, 'isatty', None)
 | 
			
		||||
        return isatty and isatty() and not self.disable_coloring
 | 
			
		||||
 | 
			
		||||
    if not subprocess.mswindows:
 | 
			
		||||
    if not platform.system() == 'Windows':
 | 
			
		||||
        def output_colorized(self, message):
 | 
			
		||||
            self.stream.write(message)
 | 
			
		||||
    else:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user