diff --git a/patacrep/encoding.py b/patacrep/encoding.py index 189db9a3..1ed15b94 100644 --- a/patacrep/encoding.py +++ b/patacrep/encoding.py @@ -38,7 +38,7 @@ def detect_encoding(filename): pass else: if encoding != 'utf-8': - LOGGER.info('Opening `%s` with `%s` encoding' % (filename, encoding)) + LOGGER.info('Opening `{}` with `{}` encoding'.format(filename, encoding)) return encoding finally: filehandler.close()