support py35
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
1cad2e9d6f
commit
fca2a88ad9
1 changed files with 3 additions and 1 deletions
|
@ -82,9 +82,11 @@ class Metadata(object):
|
|||
|
||||
@classmethod
|
||||
def from_file(cls, path):
|
||||
do_decode = sys.version_info < (3, 6)
|
||||
# --no-deps is to disable recursive scanning of deps
|
||||
metadata = subprocess.check_output(["cargo", "metadata", "--no-deps",
|
||||
"--manifest-path={}".format(path)])
|
||||
"--manifest-path={}".format(path)],
|
||||
universal_newlines=do_decode)
|
||||
return cls.from_json(json.loads(metadata))
|
||||
|
||||
@staticmethod
|
||||
|
|
Loading…
Reference in a new issue