From 739cfd8c9d8967ca95e7635b7a3282906f0ab54d Mon Sep 17 00:00:00 2001 From: j Date: Sat, 23 Feb 2019 12:01:10 +0530 Subject: [PATCH] changelog uses \n newlines --- oml/library.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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: