<div dir="auto">yes I'm using python 3</div><br><div class="gmail_quote"><div dir="ltr">On Wed, 11 Apr 2018, 04:49 Chris Johns, <<a href="mailto:chrisj@rtems.org">chrisj@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Are you using Python 3?<br>
<br>
This is an upstream package ...<br>
<br>
 <a href="https://github.com/msoulier/tftpy/blob/master/tftpy/TftpServer.py" rel="noreferrer noreferrer" target="_blank">https://github.com/msoulier/tftpy/blob/master/tftpy/TftpServer.py</a><br>
<br>
and it looks to me like this has been fixed upstream so we should pull down what<br>
is there are update our versions.<br>
<br>
Chris<br>
<br>
On 11/04/2018 07:04, <a href="mailto:vijaykumar9597@gmail.com" target="_blank" rel="noreferrer">vijaykumar9597@gmail.com</a> wrote:<br>
> From: thelunatic <<a href="mailto:vijaykumar9597@gmail.com" target="_blank" rel="noreferrer">vijaykumar9597@gmail.com</a>><br>
> <br>
> ---<br>
>  tester/rt/tftpy/TftpServer.py | 4 ++--<br>
>  tester/rt/tftpy/TftpStates.py | 2 +-<br>
>  2 files changed, 3 insertions(+), 3 deletions(-)<br>
> <br>
> diff --git a/tester/rt/tftpy/TftpServer.py b/tester/rt/tftpy/TftpServer.py<br>
> index 07c2107..b6d0ada 100644<br>
> --- a/tester/rt/tftpy/TftpServer.py<br>
> +++ b/tester/rt/tftpy/TftpServer.py<br>
> @@ -53,8 +53,8 @@ class TftpServer(TftpSession):<br>
>          for name in 'dyn_file_func', 'upload_open':<br>
>              attr = getattr(self, name)<br>
>              if attr and not callable(attr):<br>
> -                raise TftpException, "%s supplied, but it is not callable." % (<br>
> -                    name,)<br>
> +                raise TftpException( "%s supplied, but it is not callable." % (<br>
> +                    name))<br>
>          if os.path.exists(self.root):<br>
>              log.debug("tftproot %s does exist", self.root)<br>
>              if not os.path.isdir(self.root):<br>
> diff --git a/tester/rt/tftpy/TftpStates.py b/tester/rt/tftpy/TftpStates.py<br>
> index 801e970..3c147a5 100644<br>
> --- a/tester/rt/tftpy/TftpStates.py<br>
> +++ b/tester/rt/tftpy/TftpStates.py<br>
> @@ -368,7 +368,7 @@ class TftpStateServerRecvWRQ(TftpServerState):<br>
>              f = self.context.upload_open(path, self.context)<br>
>              if f is None:<br>
>                  self.sendError(TftpErrors.AccessViolation)<br>
> -                raise TftpException, "Dynamic path %s not permitted" % path<br>
> +                raise TftpException("Dynamic path %s not permitted" )% path<br>
>              else:<br>
>                  self.context.fileobj = f<br>
>          else:<br>
> <br>
</blockquote></div>