Fixed an obvious error introduced with the dyn_file_func merge

master
Michael P. Soulier 2010-05-10 14:16:12 -04:00
parent 8a56d94cd3
commit 4a4f53a107
1 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ class TftpMetrics(object):
class TftpContext(object):
"""The base class of the contexts."""
def __init__(self, host, port, timeout, dyn_file_func):
def __init__(self, host, port, timeout, dyn_file_func=None):
"""Constructor for the base context, setting shared instance
variables."""
self.file_to_transfer = None
@ -165,7 +165,7 @@ class TftpContext(object):
class TftpContextServer(TftpContext):
"""The context for the server."""
def __init__(self, host, port, timeout, root, dyn_file_func):
def __init__(self, host, port, timeout, root, dyn_file_func=None):
TftpContext.__init__(self,
host,
port,