mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 19:31:54 +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,
|
||||
0,
|
||||
"candidate",
|
||||
1)
|
||||
2)
|
||||
if version_info[3] == "final": __version__ = "%d.%d.%d" % version_info[:3]
|
||||
else: __version__ = "%d.%d.%d%1.1s%d" % version_info[:5]
|
||||
|
||||
@ -37,8 +37,7 @@ apilevel = "2.0"
|
||||
paramstyle = "format"
|
||||
|
||||
from _mysql import *
|
||||
from connections import Connection
|
||||
from converters import *
|
||||
from sets import DBAPISet
|
||||
from constants import FIELD_TYPE
|
||||
|
||||
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):
|
||||
"""Factory function for connections.Connection."""
|
||||
from connections import Connection
|
||||
return apply(Connection, args, kwargs)
|
||||
|
||||
connect = Connect
|
||||
connect = Connection = Connect
|
||||
|
||||
__all__ = [ 'BINARY', 'Binary', 'Connect', 'Connection', 'DATE',
|
||||
'Date', 'Time', 'Timestamp', 'DateFromTicks', 'TimeFromTicks',
|
||||
|
@ -1,5 +1,5 @@
|
||||
#define version_info "(0,9,0,'candidate',1)"
|
||||
#define __version__ "0.9.0c1"
|
||||
#define version_info "(0,9,0,'candidate',2)"
|
||||
#define __version__ "0.9.0c2"
|
||||
/*
|
||||
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
|
||||
|
Reference in New Issue
Block a user