From d7b13b6b7ab8ca7a123e2766e20d57ea296b8831 Mon Sep 17 00:00:00 2001 From: "Asad M. Zaman" Date: Thu, 13 Nov 2003 01:07:24 +0000 Subject: [PATCH] drose - for some reason, indenting the function within if __debug__ prevents compiling for publish --- direct/src/showbase/InputState.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/direct/src/showbase/InputState.py b/direct/src/showbase/InputState.py index d85c7051f6..9ca2b6dc82 100755 --- a/direct/src/showbase/InputState.py +++ b/direct/src/showbase/InputState.py @@ -62,9 +62,7 @@ class InputState(DirectObject.DirectObject): #assert(self.debugPrint("isSet(name=%s)"%(name))) return self.state.get(name) - if __debug__: - def debugPrint(self, message): - """for debugging""" - return self.notify.debug( - "%s (%s) %s"%(id(self), len(self.state), message)) - \ No newline at end of file + def debugPrint(self, message): + """for debugging""" + return self.notify.debug( + "%s (%s) %s"%(id(self), len(self.state), message))