From 00c9bdc2a65a3cdd410ad79944280697808d1428 Mon Sep 17 00:00:00 2001 From: Sascha Bischoff Date: Tue, 1 Dec 2015 17:57:15 +0000 Subject: [PATCH] Gem5Device: Fix runtime error caused by lack of kwargs --- wlauto/common/gem5/device.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/wlauto/common/gem5/device.py b/wlauto/common/gem5/device.py index 2ee1eb4b..01592683 100644 --- a/wlauto/common/gem5/device.py +++ b/wlauto/common/gem5/device.py @@ -363,7 +363,8 @@ class BaseGem5Device(object): def init(self): pass - def push_file(self, source, dest, _): + # pylint: disable=unused-argument + def push_file(self, source, dest, **kwargs): """ Push a file to the gem5 device using VirtIO @@ -389,7 +390,8 @@ class BaseGem5Device(object): self.gem5_shell("ls -al /mnt/obb/") self.logger.debug("Push complete.") - def pull_file(self, source, dest, _): + # pylint: disable=unused-argument + def pull_file(self, source, dest, **kwargs): """ Pull a file from the gem5 device using m5 writefile @@ -429,7 +431,8 @@ class BaseGem5Device(object): shutil.move(os.path.join(self.gem5outdir, filename), dest) self.logger.debug("Pull complete.") - def delete_file(self, filepath, _): + # pylint: disable=unused-argument + def delete_file(self, filepath, **kwargs): """ Delete a file on the device """ self._check_ready() self.gem5_shell("rm '{}'".format(filepath))