Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
slhck committed Apr 15, 2018
1 parent e5f2b3d commit b5fb1fd
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions ffmpeg_normalize/_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,6 @@

loggers = {}

# https://stackoverflow.com/questions/14897756/
class TqdmToLogger(io.StringIO):
"""
Output stream for TQDM which will output to logger module instead of
the StdOut.
"""
logger = None
level = None
buf = ''

def __init__(self, logger):
super(TqdmToLogger, self).__init__()
self.logger = logger
self.level = logging.INFO

def write(self, buf):
self.buf = buf.strip('\r\n\t ')

def flush(self):
self.logger.log(self.level, self.buf)

# https://stackoverflow.com/questions/38543506/
class TqdmLoggingHandler(logging.Handler):
Expand Down

0 comments on commit b5fb1fd

Please sign in to comment.