From a1037f74c9cd828e11f662ad279fff452b195c17 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Tue, 19 Nov 2019 14:23:41 -0800 Subject: Move to Python 3. The impetus for this was mostly that after my Ubuntu upgrade, pylint suddenly starting to apply python3 rules, and I suppose it's time to adopt python 3 now that it's been released for more than a decade. --- debug/targets.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'debug/targets.py') diff --git a/debug/targets.py b/debug/targets.py index d83e84b..d797f64 100644 --- a/debug/targets.py +++ b/debug/targets.py @@ -5,7 +5,7 @@ import tempfile import testlib -class Hart(object): +class Hart: # XLEN of the hart. May be overridden with --32 or --64 command line # options. xlen = 0 @@ -45,7 +45,7 @@ class Hart(object): return self.misa & (1 << (ord(letter.upper()) - ord('A'))) return False -class Target(object): +class Target: # pylint: disable=too-many-instance-attributes # List of Hart object instances, one for each hart in the target. @@ -117,7 +117,6 @@ class Target(object): def create(self): """Create the target out of thin air, eg. start a simulator.""" - pass def server(self): """Start the debug server that gdb connects to, eg. OpenOCD.""" -- cgit v1.1