Browse Source

pylint - use format for string formatting

pull/161/head
Oliverpool 9 years ago
parent
commit
d3046339d1
  1. 2
      patacrep/encoding.py

2
patacrep/encoding.py

@ -38,7 +38,7 @@ def detect_encoding(filename):
pass pass
else: else:
if encoding != 'utf-8': if encoding != 'utf-8':
LOGGER.info('Opening `%s` with `%s` encoding' % (filename, encoding)) LOGGER.info('Opening `{}` with `{}` encoding'.format(filename, encoding))
return encoding return encoding
finally: finally:
filehandler.close() filehandler.close()

Loading…
Cancel
Save