Skip to content
Snippets Groups Projects
Commit af7332b5 authored by Pradeep Damodara's avatar Pradeep Damodara Committed by Ian Stapleton Cordasco
Browse files

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
parent 6e89f2cc
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python #!/usr/bin/env python
import io
import json import json
import sys import sys
...@@ -7,7 +8,7 @@ import sys ...@@ -7,7 +8,7 @@ import sys
def main(): def main():
INFILE = sys.argv[1] INFILE = sys.argv[1]
with open(INFILE, 'rb') as f: with io.open(INFILE, 'r', encoding='utf-8') as f:
lockfile = json.load(f) lockfile = json.load(f)
packages = [] packages = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment