From 4c63e6fe707cba64494fb0e2d0048bf374403b28 Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Sat, 7 Nov 2015 12:59:15 +0100 Subject: [PATCH] Use logger instead of print --- patacrep/encoding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patacrep/encoding.py b/patacrep/encoding.py index d38daf60..189db9a3 100644 --- a/patacrep/encoding.py +++ b/patacrep/encoding.py @@ -38,7 +38,7 @@ def detect_encoding(filename): pass else: if encoding != 'utf-8': - print('Opening `%s` with `%s` encoding' % (filename, encoding)) + LOGGER.info('Opening `%s` with `%s` encoding' % (filename, encoding)) return encoding finally: filehandler.close()