[PATCH] initial
vijaykumar9597 at gmail.com
vijaykumar9597 at gmail.com
Tue Apr 10 21:04:01 UTC 2018
From: thelunatic <vijaykumar9597 at gmail.com>
---
tester/rt/tftpy/TftpServer.py | 4 ++--
tester/rt/tftpy/TftpStates.py | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/tester/rt/tftpy/TftpServer.py b/tester/rt/tftpy/TftpServer.py
index 07c2107..b6d0ada 100644
--- a/tester/rt/tftpy/TftpServer.py
+++ b/tester/rt/tftpy/TftpServer.py
@@ -53,8 +53,8 @@ class TftpServer(TftpSession):
for name in 'dyn_file_func', 'upload_open':
attr = getattr(self, name)
if attr and not callable(attr):
- raise TftpException, "%s supplied, but it is not callable." % (
- name,)
+ raise TftpException( "%s supplied, but it is not callable." % (
+ name))
if os.path.exists(self.root):
log.debug("tftproot %s does exist", self.root)
if not os.path.isdir(self.root):
diff --git a/tester/rt/tftpy/TftpStates.py b/tester/rt/tftpy/TftpStates.py
index 801e970..3c147a5 100644
--- a/tester/rt/tftpy/TftpStates.py
+++ b/tester/rt/tftpy/TftpStates.py
@@ -368,7 +368,7 @@ class TftpStateServerRecvWRQ(TftpServerState):
f = self.context.upload_open(path, self.context)
if f is None:
self.sendError(TftpErrors.AccessViolation)
- raise TftpException, "Dynamic path %s not permitted" % path
+ raise TftpException("Dynamic path %s not permitted" )% path
else:
self.context.fileobj = f
else:
--
2.14.3
More information about the devel
mailing list