remove pre-3.6 leftovers

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2018-09-11 10:43:53 +02:00
parent 2050880140
commit e6e9cbbb71
No known key found for this signature in database
GPG key ID: 695714BD1BBC5F4C

View file

@ -203,8 +203,6 @@ class Metadata(object):
@classmethod @classmethod
def from_file(cls, path): def from_file(cls, path):
do_decode = sys.version_info < (3, 6)
metadata = subprocess.check_output(["cargo", "read-manifest", metadata = subprocess.check_output(["cargo", "read-manifest",
"--manifest-path={}".format(path)], "--manifest-path={}".format(path)])
universal_newlines=do_decode)
return cls.from_json(json.loads(metadata)) return cls.from_json(json.loads(metadata))