From 95df2fd686a43b2703d230a5416a623b47dbc3d8 Mon Sep 17 00:00:00 2001 From: Joe Shochet Date: Mon, 7 Mar 2005 18:32:28 +0000 Subject: [PATCH] fixed windows line endings --- direct/src/ffi/FFIExternalObject.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/direct/src/ffi/FFIExternalObject.py b/direct/src/ffi/FFIExternalObject.py index 74ee60abaf..e93fde9223 100644 --- a/direct/src/ffi/FFIExternalObject.py +++ b/direct/src/ffi/FFIExternalObject.py @@ -25,17 +25,17 @@ def registerInTypeMap(pythonClass): WrapperClassMap[typeIndex] = pythonClass -def funcToMethod(func,clas,method_name=None): - """Adds func to class so it is an accessible method; use method_name to specify the name to be used for calling the method. - The new method is accessible to any instance immediately.""" - func.im_class=clas - func.im_func=func - func.im_self=None - if not method_name: - clas.__dict__[method_name]=func - else: - clas.__dict__[func.__name__]=func - +def funcToMethod(func,clas,method_name=None): + """Adds func to class so it is an accessible method; use method_name to specify the name to be used for calling the method. + The new method is accessible to any instance immediately.""" + func.im_class=clas + func.im_func=func + func.im_self=None + if not method_name: + clas.__dict__[method_name]=func + else: + clas.__dict__[func.__name__]=func + def FFIInstance(classdef, this = 0, userManagesMemory = 0 ): answer = instance(classdef)