From e6e9cbbb71199c2773b47fa21f1c917a167c1743 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 11 Sep 2018 10:43:53 +0200 Subject: [PATCH 04/13] remove pre-3.6 leftovers Signed-off-by: Igor Gnatenko --- rust2rpm/metadata.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rust2rpm/metadata.py b/rust2rpm/metadata.py index f52d968..5adeb65 100644 --- a/rust2rpm/metadata.py +++ b/rust2rpm/metadata.py @@ -203,8 +203,6 @@ class Metadata(object): @classmethod def from_file(cls, path): - do_decode = sys.version_info < (3, 6) metadata = subprocess.check_output(["cargo", "read-manifest", - "--manifest-path={}".format(path)], - universal_newlines=do_decode) + "--manifest-path={}".format(path)]) return cls.from_json(json.loads(metadata)) -- 2.20.0.rc2