Skip to content
This repository has been archived by the owner on Oct 23, 2019. It is now read-only.

Commit

Permalink
Update main.py (#11)
Browse files Browse the repository at this point in the history
* Update main.py

Fix file encoding on Windows

* Update changelog.md

Add entry to changelog.md

* Revert .gitignore
  • Loading branch information
EricE authored and florimondmanca committed May 12, 2019
1 parent 82c938f commit fae5f23
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ __pycache__/
# C extensions
*.so

# Windows
*.bat

# Distribution / packaging
.Python
build/
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project are documented here. The format of this docu

## [Unreleased]

### Fixed

- An encoding issue prevented from running the `create` command on Windows. This has been fixed. (@EricE)

## [v0.2.1] - 2019-04-21

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion bocadillo_cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def writefile(self, path: pathlib.Path, content: str):
return

if not self.dry:
with open(str(path), "w") as f:
with open(str(path), "w", encoding="utf-8") as f:
f.write(content)
f.write("\n")

Expand Down

0 comments on commit fae5f23

Please sign in to comment.