Skip to content

Commit

Permalink
Fix outfile encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
msufa committed Dec 12, 2016
1 parent c2bf154 commit b7db733
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

setup(
name='tracking-id-injector',
version='1.0.0',
version='1.0.1',
url='https://github.com/msufa/tracking-id-injector',
author='Maciek Sufa',
description=('Console script for injecting Google Analytics tracking IDs '
Expand Down
2 changes: 1 addition & 1 deletion tridinjector/injector.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def _inject_tracking_id(tracking_id, soup):

def _write_output(soup, output_filename):
with open(output_filename, 'w') as outfile:
outfile.write(soup.prettify())
outfile.write(soup.prettify().encode('utf-8'))


def main():
Expand Down

0 comments on commit b7db733

Please sign in to comment.