@@ -39,8 +39,8 @@ PyObject* pysqlite_Error, *pysqlite_Warning, *pysqlite_InterfaceError, *pysqlite
3939 * pysqlite_InternalError , * pysqlite_OperationalError , * pysqlite_ProgrammingError ,
4040 * pysqlite_IntegrityError , * pysqlite_DataError , * pysqlite_NotSupportedError , * pysqlite_OptimizedUnicode ;
4141
42- PyObject * converters ;
43- int _enable_callback_tracebacks ;
42+ PyObject * _pysqlite_converters ;
43+ int _pysqlite_enable_callback_tracebacks ;
4444int pysqlite_BaseTypeAdapted ;
4545
4646static PyObject * module_connect (PyObject * self , PyObject * args , PyObject *
@@ -190,7 +190,7 @@ static PyObject* module_register_converter(PyObject* self, PyObject* args)
190190 goto error ;
191191 }
192192
193- if (PyDict_SetItem (converters , name , callable ) != 0 ) {
193+ if (PyDict_SetItem (_pysqlite_converters , name , callable ) != 0 ) {
194194 goto error ;
195195 }
196196
<
5400
/code>@@ -208,7 +208,7 @@ Registers a converter with pysqlite. Non-standard.");
208208
209209static PyObject * enable_callback_tracebacks (PyObject * self , PyObject * args )
210210{
211- if (!PyArg_ParseTuple (args , "i" , & _enable_callback_tracebacks )) {
211+ if (!PyArg_ParseTuple (args , "i" , & _pysqlite_enable_callback_tracebacks )) {
212212 return NULL ;
213213 }
214214
@@ -223,12 +223,12 @@ Enable or disable callback functions throwing errors to stderr.");
223223
224224static void converters_init (PyObject * dict )
225225{
226- converters = PyDict_New ();
227- if (!converters ) {
226+ _pysqlite_converters = PyDict_New ();
227+ if (!_pysqlite_converters ) {
228228 return ;
229229 }
230230
231- PyDict_SetItemString (dict , "converters" , converters );
231+ PyDict_SetItemString (dict , "converters" , _pysqlite_converters );
232232}
233233
234234static PyMethodDef module_methods [] = {
@@ -428,7 +428,7 @@ PyMODINIT_FUNC init_sqlite3(void)
428428 /* initialize the default converters */
429429 converters_init (dict );
430430
431- _enable_callback_tracebacks = 0 ;
431+ _pysqlite_enable_callback_tracebacks = 0 ;
432432
433433 pysqlite_BaseTypeAdapted = 0 ;
434434
0 commit comments