diff options
author | ¨Andreas <¨andreas.dachsberger@gmail.com¨> | 2018-09-10 10:44:46 +0200 |
---|---|---|
committer | ¨Andreas <¨andreas.dachsberger@gmail.com¨> | 2018-09-10 10:44:46 +0200 |
commit | 52bb72fa7e27a2d14129d64f939a0bdf013c272f (patch) | |
tree | 3c3411c1ed6f91b4d4c323b7637855ed77ad7c7e /tftpy/TftpClient.py | |
parent | c39fa7e1a32ca570ecf17de2be9eebe223e13be7 (diff) | |
download | tftpy-52bb72fa7e27a2d14129d64f939a0bdf013c272f.tar.gz |
2to3
Not finished, a few type conversion errors still occur.2to3
Diffstat (limited to 'tftpy/TftpClient.py')
-rw-r--r-- | tftpy/TftpClient.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tftpy/TftpClient.py b/tftpy/TftpClient.py index c366cae..eb82c05 100644 --- a/tftpy/TftpClient.py +++ b/tftpy/TftpClient.py @@ -4,7 +4,7 @@ instance of the client, and then use its upload or download method. Logging is performed via a standard logging object set in TftpShared.""" -from __future__ import absolute_import, division, print_function, unicode_literals + import types import logging from .TftpShared import * @@ -28,7 +28,7 @@ class TftpClient(TftpSession): self.localip = localip if 'blksize' in self.options: size = self.options['blksize'] - tftpassert(types.IntType == type(size), "blksize must be an int") + tftpassert(int == type(size), "blksize must be an int") if size < MIN_BLKSIZE or size > MAX_BLKSIZE: raise TftpException("Invalid blksize: %d" % size) |