diff options
author | Michael P. Soulier <msoulier@digitaltorque.ca> | 2011-07-23 20:29:06 -0400 |
---|---|---|
committer | Michael P. Soulier <msoulier@digitaltorque.ca> | 2011-07-23 20:29:06 -0400 |
commit | 949c998648a9e3e1b00a7cb218d8f8093a48ac48 (patch) | |
tree | 7cf9ea4fe1690e5404494132f725d69a579f1ae5 /tftpy/TftpClient.py | |
parent | a43773e26cb056bc1db6392f2ffa9dedcabd4548 (diff) | |
download | tftpy-949c998648a9e3e1b00a7cb218d8f8093a48ac48.tar.gz |
Fixing issue #9, removing blksize option from client if not supplied.
Diffstat (limited to 'tftpy/TftpClient.py')
-rw-r--r-- | tftpy/TftpClient.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tftpy/TftpClient.py b/tftpy/TftpClient.py index 5fbe733..f9250bf 100644 --- a/tftpy/TftpClient.py +++ b/tftpy/TftpClient.py @@ -19,15 +19,11 @@ class TftpClient(TftpSession): self.iport = port self.filename = None self.options = options - # FIXME: If the blksize is DEF_BLKSIZE, we should just skip sending - # it. if self.options.has_key('blksize'): size = self.options['blksize'] tftpassert(types.IntType == type(size), "blksize must be an int") if size < MIN_BLKSIZE or size > MAX_BLKSIZE: raise TftpException, "Invalid blksize: %d" % size - else: - self.options['blksize'] = DEF_BLKSIZE def download(self, filename, output, packethook=None, timeout=SOCK_TIMEOUT): """This method initiates a tftp download from the configured remote |