1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-10 16:49:17 +00:00

correctly handle showdiff with templates

This commit is contained in:
deadc0de6
2018-10-08 16:10:43 +02:00
parent 66548e04ea
commit 35fc17d2a7
2 changed files with 17 additions and 5 deletions

View File

@@ -84,7 +84,8 @@ class Templategen:
if not src.startswith(self.base):
src = os.path.join(self.base, src)
with open(src, 'rb') as f:
return f.read()
content = f.read()
return content
def _read_bad_encoded_text(self, path):
"""decode non utf-8 data"""