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 committed Jun 25, 2017
1 parent e559343 commit 747325a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gitchangelog/gitchangelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
mako = None


__version__ = "%%version%%" ## replaced by autogen.sh
__version__ = "3.0.3.dev201706231753" ## replaced by autogen.sh

DEBUG = None

Expand Down 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(_preferred_encoding))

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

0 comments on commit 747325a

Please sign in to comment.