diff --git a/oml/library.py b/oml/library.py index 09cc474..90798aa 100644 --- a/oml/library.py +++ b/oml/library.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -import codecs import json import os import time @@ -53,7 +52,7 @@ class Peer(object): def apply_log(self): changes = [] if os.path.exists(self._logpath): - with codecs.open(self._logpath, 'r', encoding='utf-8') as fd: + with open(self._logpath, 'r', encoding='utf-8', newline='\n') as fd: for line in fd: if line: try: