changelog uses \n newlines

This commit is contained in:
j 2019-02-23 12:01:10 +05:30
parent b7d140e36a
commit 739cfd8c9d
1 changed files with 1 additions and 2 deletions

View File

@ -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: