Extract same code to method.
Extract same code to method.

yeyinzhu3211/PyMySQL,wraziens/PyMySQL,jwjohns/PyMySQL,pymysql/pymysql,pulsar314/Tornado-MySQL,aio-libs/aiomysql,Geoion/Tornado-MySQL,eibanez/PyMySQL,mosquito/Tornado-MySQL,MartinThoma/PyMySQL,Ting-y/PyMySQL,PyMySQL/Tornado-MySQL,lzedl/PyMySQL,methane/PyMySQL,eibanez/PyMySQL,NunoEdgarGub1/PyMySQL,DashaChuk/PyMySQL,lzedl/PyMySQL,anson-tang/PyMySQL,nju520/PyMySQL,boneyao/PyMySQL,xjzhou/PyMySQL,modulexcite/PyMySQL,jheld/PyMySQL,xjzhou/PyMySQL,wraziens/PyMySQL,PyMySQL/PyMySQL,yeyinzhu3211/PyMySQL