Skip to content

Commit af7332b

Browse files
pdamodarasigmavirus24
authored andcommitted
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
1 parent 6e89f2c commit af7332b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vendor/pipenv-to-pip

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
#!/usr/bin/env python
22

3+
import io
34
import json
45
import sys
56

67

78
def main():
89
INFILE = sys.argv[1]
910

10-
with open(INFILE, 'rb') as f:
11+
with io.open(INFILE, 'r', encoding='utf-8') as f:
1112
lockfile = json.load(f)
1213

1314
packages = []

0 commit comments

Comments
 (0)