diff --git a/dtool/src/interrogate/interfaceMakerPythonNative.cxx b/dtool/src/interrogate/interfaceMakerPythonNative.cxx index a617ba4e76..d950b7e3d5 100644 --- a/dtool/src/interrogate/interfaceMakerPythonNative.cxx +++ b/dtool/src/interrogate/interfaceMakerPythonNative.cxx @@ -74,7 +74,7 @@ RenameSet methodRenameDictionary[] = { { "operator =" , "assign", 0 }, { "operator ()" , "__call__", 0 }, { "operator []" , "__getitem__", 0 }, - { "operator [] =" , "__setitem__", 0 }, + { "operator []=" , "__setitem__", 0 }, { "operator ++unary", "increment", 0 }, { "operator ++" , "increment", 0 }, { "operator --unary", "decrement", 0 }, diff --git a/dtool/src/interrogate/interrogateBuilder.cxx b/dtool/src/interrogate/interrogateBuilder.cxx index 9ce9e57a1f..45222f6a9c 100644 --- a/dtool/src/interrogate/interrogateBuilder.cxx +++ b/dtool/src/interrogate/interrogateBuilder.cxx @@ -3054,7 +3054,7 @@ define_method(CPPInstance *function, InterrogateType &itype, CPPFunctionType *ftype = new CPPFunctionType(void_type, params, 0); // Now make up an instance for the function. - CPPInstance *function = new CPPInstance(ftype, "operator [] ="); + CPPInstance *function = new CPPInstance(ftype, "operator []="); function->_ident->_native_scope = scope; FunctionIndex index = get_function(function, "",