diff --git a/rtv/__init__.py b/rtv/__init__.py index fd24762..7a6addc 100644 --- a/rtv/__init__.py +++ b/rtv/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -""" +r""" ________ __________________________ ___ __ \__________ /_____ /__(_)_ /_ __ /_/ / _ \ __ /_ __ /__ /_ __/ diff --git a/rtv/__main__.py b/rtv/__main__.py index 2f4aacc..03e5fc3 100644 --- a/rtv/__main__.py +++ b/rtv/__main__.py @@ -78,7 +78,7 @@ def main(): level=logging.DEBUG, filename=config['log'], format='%(asctime)s:%(levelname)s:%(filename)s:%(lineno)d:%(message)s') - _logger.info('Starting new session, RTV v{}'.format(__version__)) + _logger.info('Starting new session, RTV v%s', __version__) else: # Add an empty handler so the logger doesn't complain logging.root.addHandler(logging.NullHandler()) diff --git a/rtv/terminal.py b/rtv/terminal.py index 26c9144..9921443 100644 --- a/rtv/terminal.py +++ b/rtv/terminal.py @@ -405,7 +405,7 @@ class Terminal(object): with codecs.open(filepath, 'w', 'utf-8') as fp: fp.write(data) - _logger.info('File created: {}'.format(filepath)) + _logger.info('File created: %s', filepath) editor = os.getenv('RTV_EDITOR') or os.getenv('EDITOR') or 'nano' try: @@ -428,15 +428,15 @@ class Terminal(object): # All exceptions will cause the file to *not* be removed, but these # ones should also be swallowed _logger.info('Caught TemporaryFileError') - self.show_notification('Post saved as: {}'.format(filepath)) + self.show_notification('Post saved as: %s', filepath) else: # If no errors occurred, try to remove the file try: os.remove(filepath) except OSError: - _logger.warning('Could not delete: {}'.format(filepath)) + _logger.warning('Could not delete: %', filepath) else: - _logger.info('File deleted: {}'.format(filepath)) + _logger.info('File deleted: %', filepath) def text_input(self, window, allow_resize=False): """