Skip to content

Commit

Permalink
Updating to have this encode as configured
Browse files Browse the repository at this point in the history
Was getting some stack traces when this was writing out UTF-8 git commit log content. Made this change locally to address.
  • Loading branch information
goosemo authored Jun 24, 2017
1 parent e559343 commit 1621d09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gitchangelog/gitchangelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -1446,7 +1446,7 @@ def FileInsertAtFirstRegexMatch(filename, pattern, flags=0,

def write_content(f, content):
for content_line in content:
f.write(content_line)
f.write(content_line.encode(_prefered_encoding))

def _wrapped(content):
index = idx(_file_regex_match(filename, pattern, flags=flags))
Expand Down

0 comments on commit 1621d09

Please sign in to comment.