Skip to content

Commit

Permalink
Merge pull request #2450 from pypa/bugfix/2449
Browse files Browse the repository at this point in the history
Ensure we use unicode for proper names db
  • Loading branch information
techalchemy authored Jun 27, 2018
2 parents 8203d38 + a9284c7 commit 8256c53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions news/2450.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Pipenv will now ensure that its internal package names registry files are written with unicode strings.
2 changes: 1 addition & 1 deletion pipenv/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ def proper_names(self):
def register_proper_name(self, name):
"""Registers a proper name to the database."""
with self.proper_names_db_path.open('a') as f:
f.write('{0}\n'.format(name))
f.write(u'{0}\n'.format(name))

@property
def pipfile_location(self):
Expand Down

0 comments on commit 8256c53

Please sign in to comment.