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 -*-
|
# -*- coding: utf-8 -*-
|
||||||
import codecs
|
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
@ -53,7 +52,7 @@ class Peer(object):
|
||||||
def apply_log(self):
|
def apply_log(self):
|
||||||
changes = []
|
changes = []
|
||||||
if os.path.exists(self._logpath):
|
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:
|
for line in fd:
|
||||||
if line:
|
if line:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue