You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1015 B
28 lines
1015 B
From e6e9cbbb71199c2773b47fa21f1c917a167c1743 Mon Sep 17 00:00:00 2001
|
|
From: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
|
|
Date: Tue, 11 Sep 2018 10:43:53 +0200
|
|
Subject: [PATCH 04/10] remove pre-3.6 leftovers
|
|
|
|
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
|
|
---
|
|
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.19.1
|
|
|