diff options
-rw-r--r-- | scss/tool.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scss/tool.py b/scss/tool.py index 08abb44..a348e9c 100644 --- a/scss/tool.py +++ b/scss/tool.py @@ -250,8 +250,8 @@ def watch_sources(options): 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) |