From d688ca490efd7d0c864574e09aedd419d12d1bf0 Mon Sep 17 00:00:00 2001 From: k4yt3x Date: Thu, 4 Jun 2020 22:13:30 -0400 Subject: [PATCH] bumped last edited date and added comments --- src/bilogger.py | 15 ++++++++++++++- src/video2x.py | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/bilogger.py b/src/bilogger.py index db9b5dd..0e90a94 100644 --- a/src/bilogger.py +++ b/src/bilogger.py @@ -20,14 +20,27 @@ class BiLogger(object): """ def __init__(self, terminal: _io.TextIOWrapper, logfile: pathlib.Path): + """ initialize BiLogger + + Args: + terminal (_io.TextIOWrapper): original terminal IO wrapper + logfile (pathlib.Path): target log file path object + """ self.terminal = terminal self.log = logfile.open(mode='a+') - def write(self, message): + def write(self, message: str): + """ write message to original terminal output and log file + + Args: + message (str): message to write + """ self.terminal.write(message) self.terminal.flush() self.log.write(message) self.log.flush() def flush(self): + """ flush logger (for compability only) + """ pass diff --git a/src/video2x.py b/src/video2x.py index 0f76b7e..7b14a8c 100755 --- a/src/video2x.py +++ b/src/video2x.py @@ -13,7 +13,7 @@ __ __ _ _ ___ __ __ Name: Video2X Controller Creator: K4YT3X Date Created: Feb 24, 2018 -Last Modified: May 23, 2020 +Last Modified: June 4, 2020 Editor: BrianPetkovsek Last Modified: June 17, 2019