forked from pool/python-cooldict
Accepting request 596685 from home:a_faerber:branches:devel:languages:python
cooldict 1.02 (dependency of angr) OBS-URL: https://build.opensuse.org/request/show/596685 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cooldict?expand=0&rev=1
This commit is contained in:
38
cooldict_python3.patch
Normal file
38
cooldict_python3.patch
Normal file
@@ -0,0 +1,38 @@
|
||||
From 516fd5a87f0332444b6bf055bb755f28e1c7c9fb Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20F=C3=A4rber?= <afaerber@suse.de>
|
||||
Date: Sun, 15 Apr 2018 13:16:35 +0200
|
||||
Subject: [PATCH] Fix Python3 SyntaxError
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Python 3.6 emits the following error:
|
||||
|
||||
File "/usr/lib/python3.6/site-packages/cooldict.py", line 577
|
||||
print da[10]
|
||||
^
|
||||
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(da[10])?
|
||||
|
||||
Address this by adding the suggested parentheses.
|
||||
|
||||
Signed-off-by: Andreas Färber <afaerber@suse.de>
|
||||
---
|
||||
cooldict.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/cooldict.py b/cooldict.py
|
||||
index 27bcb5c..e070714 100644
|
||||
--- a/cooldict.py
|
||||
+++ b/cooldict.py
|
||||
@@ -574,7 +574,7 @@ def test():
|
||||
l.info("Testing SinkholeCOWDict")
|
||||
da = SinkholeCOWDict()
|
||||
try:
|
||||
- print da[10]
|
||||
+ print(da[10])
|
||||
assert False
|
||||
except KeyError:
|
||||
pass
|
||||
--
|
||||
2.16.3
|
||||
|
||||
Reference in New Issue
Block a user