Skip to content

Commit

Permalink
fixing utf8
Browse files Browse the repository at this point in the history
  • Loading branch information
ondras committed Mar 28, 2018
1 parent 990919b commit 6539b05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,14 @@ def force_bytes(text):
with open(yaml_src, 'rb') as fp:
regexes = yaml.safe_load(fp)
with open(py_dest, 'wb') as fp:
fp.write(b'# -*- coding: utf-8 -*-\n')
fp.write(b'############################################\n')
fp.write(b'# NOTICE: This file is autogenerated from #\n')
fp.write(b'# regexes.yaml. Do not edit by hand, #\n')
fp.write(b'# instead, re-run `setup.py build_regexes` #\n')
fp.write(b'############################################\n')
fp.write(b'\n')
fp.write(b'from __future__ import absolute_import\n')
fp.write(b'from __future__ import absolute_import, unicode_literals\n')
fp.write(b'from .user_agent_parser import (\n')
fp.write(b' UserAgentParser, DeviceParser, OSParser,\n')
fp.write(b')\n')
Expand Down

0 comments on commit 6539b05

Please sign in to comment.