changelog uses \n newlines
This commit is contained in:
parent
b7d140e36a
commit
739cfd8c9d
1 changed files with 1 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue