blob: d947a3a61e90d781cfc9b3282a89b48421fbee5f [file] [log] [blame]
Andrew Geissler84ad7c52020-06-27 00:00:16 -05001From 940acab94a60708a9a9092579af52c1195f23fae Mon Sep 17 00:00:00 2001
2From: Peter Ogden <ogden@xilinx.com>
3Date: Tue, 3 Mar 2020 06:21:03 -0500
4Subject: [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
10diff --git a/pynq/xlnk.py b/pynq/xlnk.py
11index 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--
242.7.4
25