Skip to content

Commit

Permalink
Merge pull request #325 from kernc/patch-1
Browse files Browse the repository at this point in the history
Encode the output to UTF-8 before writing to file
  • Loading branch information
eevee committed Jan 6, 2015
2 parents f26e994 + fd66919 commit 9cf89dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scss/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,8 @@ def compile(self, src_path):
dest_path = os.path.join(os.path.dirname(src_path), fname)

print("Compiling %s => %s" % (src_path, dest_path))
dest_file = open(dest_path, 'w')
dest_file.write(self.css.compile(scss_file=src_path))
dest_file = open(dest_path, 'wb')
dest_file.write(self.css.compile(scss_file=src_path).encode('utf-8'))

def on_moved(self, event):
super(ScssEventHandler, self).on_moved(event)
Expand Down

0 comments on commit 9cf89dc

Please sign in to comment.