forked from pool/python-cooldict
39 lines
1.0 KiB
Diff
39 lines
1.0 KiB
Diff
|
|
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
|
||
|
|
|