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
Tags v131
No related merge requests found
#!/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 = []
......
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