Update pipenv-to-pip to read lockfiles properly

Use the appropriate encoding to read a Pipfile.lock so we can
properly load the data.

Closes #678
This commit is contained in:
Pradeep Damodara
2018-05-07 15:47:45 -04:00
committed by Ian Stapleton Cordasco
parent 6e89f2cc96
commit af7332b5b2
+2 -1
View File
@@ -1,5 +1,6 @@
#!/usr/bin/env python
import io
import json
import sys
@@ -7,7 +8,7 @@ import sys
def main():
INFILE = sys.argv[1]
with open(INFILE, 'rb') as f:
with io.open(INFILE, 'r', encoding='utf-8') as f:
lockfile = json.load(f)
packages = []