[PATCH] initial
Chris Johns
chrisj at rtems.org
Tue Apr 10 23:19:35 UTC 2018
Hi,
Are you using Python 3?
This is an upstream package ...
https://github.com/msoulier/tftpy/blob/master/tftpy/TftpServer.py
and it looks to me like this has been fixed upstream so we should pull down what
is there are update our versions.
Chris
On 11/04/2018 07:04, vijaykumar9597 at gmail.com wrote:
> 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:
>
More information about the devel
mailing list