Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-updates-src > by-pkgid > b1fd697ad119489cb3b31a536cfc22f6 > files > 1

python-rustcfg-0.0.2-1.mga6.src.rpm

From 97a1cf90a934c8f3447064740dabe67407f13546 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= <rverschelde@gmail.com>
Date: Tue, 11 Sep 2018 09:53:45 +0200
Subject: [PATCH] Replace f-strings by format for Python 3.5 compatibility

---
 rustcfg/__init__.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rustcfg/__init__.py b/rustcfg/__init__.py
index bc8b86d..073b58e 100644
--- a/rustcfg/__init__.py
+++ b/rustcfg/__init__.py
@@ -78,11 +78,11 @@ class Evaluator:
             if op == 'not':
                 assert(len(tree) == 2)
                 return not self.eval_tree(tree[1])
-            assert False, f'Unknown operator {op}'
+            assert False, 'Unknown operator {}'.format(op)
         elif kind == 'archtuple':
             return 'linux' in list(tree)
         else:
-            assert False, f'Unknown element {kind}'
+            assert False, 'Unknown element {}'.format(kind)
 
     @classmethod
     def platform(cls):
-- 
2.13.7