Merge pull request #2450 from pypa/bugfix/2449

Ensure we use unicode for proper names db
This commit is contained in:
Dan Ryan
2018-06-27 18:51:10 -04:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
Pipenv will now ensure that its internal package names registry files are written with unicode strings.
+1 -1
View File
@@ -363,7 +363,7 @@ class Project(object):
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):