mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
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:
committed by
Ian Stapleton Cordasco
parent
6e89f2cc96
commit
af7332b5b2
Vendored
+2
-1
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user