mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-16 12:27:03 +08:00
Clean up some import statements, bump versions to 0.9.0c2.
This commit is contained in:
@ -20,7 +20,7 @@ version_info = (
|
|||||||
9,
|
9,
|
||||||
0,
|
0,
|
||||||
"candidate",
|
"candidate",
|
||||||
1)
|
2)
|
||||||
if version_info[3] == "final": __version__ = "%d.%d.%d" % version_info[:3]
|
if version_info[3] == "final": __version__ = "%d.%d.%d" % version_info[:3]
|
||||||
else: __version__ = "%d.%d.%d%1.1s%d" % version_info[:5]
|
else: __version__ = "%d.%d.%d%1.1s%d" % version_info[:5]
|
||||||
|
|
||||||
@ -37,8 +37,7 @@ apilevel = "2.0"
|
|||||||
paramstyle = "format"
|
paramstyle = "format"
|
||||||
|
|
||||||
from _mysql import *
|
from _mysql import *
|
||||||
from connections import Connection
|
from sets import DBAPISet
|
||||||
from converters import *
|
|
||||||
from constants import FIELD_TYPE
|
from constants import FIELD_TYPE
|
||||||
|
|
||||||
STRING = DBAPISet(FIELD_TYPE.CHAR, FIELD_TYPE.ENUM, FIELD_TYPE.STRING,
|
STRING = DBAPISet(FIELD_TYPE.CHAR, FIELD_TYPE.ENUM, FIELD_TYPE.STRING,
|
||||||
@ -57,9 +56,10 @@ def Binary(x): return str(x)
|
|||||||
|
|
||||||
def Connect(*args, **kwargs):
|
def Connect(*args, **kwargs):
|
||||||
"""Factory function for connections.Connection."""
|
"""Factory function for connections.Connection."""
|
||||||
|
from connections import Connection
|
||||||
return apply(Connection, args, kwargs)
|
return apply(Connection, args, kwargs)
|
||||||
|
|
||||||
connect = Connect
|
connect = Connection = Connect
|
||||||
|
|
||||||
__all__ = [ 'BINARY', 'Binary', 'Connect', 'Connection', 'DATE',
|
__all__ = [ 'BINARY', 'Binary', 'Connect', 'Connection', 'DATE',
|
||||||
'Date', 'Time', 'Timestamp', 'DateFromTicks', 'TimeFromTicks',
|
'Date', 'Time', 'Timestamp', 'DateFromTicks', 'TimeFromTicks',
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#define version_info "(0,9,0,'candidate',1)"
|
#define version_info "(0,9,0,'candidate',2)"
|
||||||
#define __version__ "0.9.0c1"
|
#define __version__ "0.9.0c2"
|
||||||
/*
|
/*
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
Reference in New Issue
Block a user