git://git.onelab.eu
/
nepi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
applied the except and raise fixers to the master branch to close the gap with py3
[nepi.git]
/
src
/
nepi
/
resources
/
linux
/
route.py
diff --git
a/src/nepi/resources/linux/route.py
b/src/nepi/resources/linux/route.py
index
7c6d292
..
28f6160
100644
(file)
--- a/
src/nepi/resources/linux/route.py
+++ b/
src/nepi/resources/linux/route.py
@@
-55,8
+55,8
@@
class LinuxRoute(LinuxApplication):
elif tun: self._device = tun[0]
elif interface: self._device = interface[0]
else:
elif tun: self._device = tun[0]
elif interface: self._device = interface[0]
else:
- raise RuntimeError
,
"linux::Routes must be connected to a "\
- "linux::TAP, linux::TUN, or linux::Interface"
+ raise RuntimeError
(
"linux::Routes must be connected to a "\
+ "linux::TAP, linux::TUN, or linux::Interface"
)
return self._device
@property
return self._device
@property
@@
-108,7
+108,7
@@
class LinuxRoute(LinuxApplication):
else:
msg = " Failed to execute command '%s'" % command
self.error(msg, out, err)
else:
msg = " Failed to execute command '%s'" % command
self.error(msg, out, err)
- raise RuntimeError
, msg
+ raise RuntimeError
(msg)
def do_stop(self):
command = self.get('command') or ''
def do_stop(self):
command = self.get('command') or ''