File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +12
-11
lines changed
Original file line number Diff line number Diff line change @@ -514,20 +514,10 @@ _mysql_ConnectionObject_Initialize(
514
514
))
515
515
return -1 ;
516
516
517
- if (!conv )
518
- conv = PyDict_New ();
519
- #if PY_VERSION_HEX > 0x02000100
520
- else
521
- Py_INCREF (conv );
522
- #endif
523
- if (!conv )
524
- return -1 ;
525
- self -> converter = conv ;
526
-
527
517
#define _stringsuck (d ,t ,s ) {t=PyMapping_GetItemString(s,#d);\
528
518
if(t){d=PyString_AsString(t);Py_DECREF(t);}\
529
519
PyErr_Clear();}
530
-
520
+
531
521
if (ssl ) {
532
522
#if HAVE_OPENSSL
533
523
PyObject * value = NULL ;
@@ -581,6 +571,17 @@ _mysql_ConnectionObject_Initialize(
581
571
_mysql_Exception (self );
582
572
return -1 ;
583
573
}
574
+
575
+ /* Internal references to python-land objects */
576
+ if (!conv )
577
+ conv = PyDict_New ();
578
+ else
579
+ Py_INCREF (conv );
580
+
581
+ if (!conv )
582
+ return -1 ;
583
+ self -> converter = conv ;
584
+
584
585
/*
585
586
PyType_GenericAlloc() automatically sets up GC allocation and
586
587
tracking for GC objects, at least in 2.2.1, so it does not need to
You can’t perform that action at this time.
0 commit comments