Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 1 | From 940acab94a60708a9a9092579af52c1195f23fae Mon Sep 17 00:00:00 2001 |
| 2 | From: Peter Ogden <ogden@xilinx.com> |
| 3 | Date: Tue, 3 Mar 2020 06:21:03 -0500 |
| 4 | Subject: [PATCH 1/3] Fix 3.6-ism in Xlnk class |
| 5 | |
| 6 | --- |
| 7 | pynq/xlnk.py | 2 +- |
| 8 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 9 | |
| 10 | diff --git a/pynq/xlnk.py b/pynq/xlnk.py |
| 11 | index c07f1e5..a25e0e3 100644 |
| 12 | --- a/pynq/xlnk.py |
| 13 | +++ b/pynq/xlnk.py |
| 14 | @@ -423,7 +423,7 @@ class Xlnk: |
| 15 | for l in f.readlines(): |
| 16 | m = re.match('CmaTotal:[\\s]+([0-9]+) kB', l) |
| 17 | if m: |
| 18 | - return int(m[1]) * 1024 |
| 19 | + return int(m.group(1)) * 1024 |
| 20 | return 0 |
| 21 | |
| 22 | def flush(self, bo, offset, vaddr, nbytes): |
| 23 | -- |
| 24 | 2.7.4 |
| 25 | |