From 4a4f53a107e09f3c6368d56192337de6339b8c54 Mon Sep 17 00:00:00 2001 From: "Michael P. Soulier" Date: Mon, 10 May 2010 14:16:12 -0400 Subject: [PATCH] Fixed an obvious error introduced with the dyn_file_func merge --- tftpy/TftpStates.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tftpy/TftpStates.py b/tftpy/TftpStates.py index fbe9e23..942b073 100644 --- a/tftpy/TftpStates.py +++ b/tftpy/TftpStates.py @@ -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,