Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
60ab634c
Unverified
Commit
60ab634c
authored
Jun 25, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Read/write the pyproject.tom file using utf-8
parent
65fad088
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
CHANGELOG.md
+1
-0
poetry/utils/toml_file.py
+2
-2
No files found.
CHANGELOG.md
View file @
60ab634c
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
-
Changed the dependency installation order, deepest dependencies are now installed first.
-
Changed the dependency installation order, deepest dependencies are now installed first.
-
Improved solver error messages.
-
Improved solver error messages.
-
`poetry`
now always reads/writes the
`pyproject.toml`
file with the
`utf-8`
encoding.
### Fixed
### Fixed
...
...
poetry/utils/toml_file.py
View file @
60ab634c
...
@@ -17,7 +17,7 @@ class TomlFile:
...
@@ -17,7 +17,7 @@ class TomlFile:
return
self
.
_path
return
self
.
_path
def
read
(
self
,
raw
=
False
):
# type: (bool) -> dict
def
read
(
self
,
raw
=
False
):
# type: (bool) -> dict
with
self
.
_path
.
open
()
as
f
:
with
self
.
_path
.
open
(
encoding
=
"utf-8"
)
as
f
:
if
raw
:
if
raw
:
return
toml
.
loads
(
f
.
read
())
return
toml
.
loads
(
f
.
read
())
...
@@ -29,7 +29,7 @@ class TomlFile:
...
@@ -29,7 +29,7 @@ class TomlFile:
else
:
else
:
data
=
dumps
(
data
)
data
=
dumps
(
data
)
with
self
.
_path
.
open
(
"w"
)
as
f
:
with
self
.
_path
.
open
(
"w"
,
encoding
=
"utf-8"
)
as
f
:
f
.
write
(
data
)
f
.
write
(
data
)
def
__getattr__
(
self
,
item
):
def
__getattr__
(
self
,
item
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment