bdarnell / torndb

A lightweight wrapper around MySQLdb. Originally part of the Tornado framework.
582 stars 202 forks source link

torndb v0.2 on PyPI differs from the same version on readthedocs and GitHub #27

Closed tevino closed 10 years ago

tevino commented 10 years ago

This will raise an TypeError: TypeError: __init__() got an unexpected keyword argument 'charset'

from torndb import Connection
Connection('localhost', 'user', charset="utf8mb4")

latest(version = "0.2" in the code) On ReadTheDocs and GitHub:

def __init__(self, host, database, user=None, password=None,
                 max_idle_time=7 * 3600, connect_timeout=0, 
                 time_zone="+0:00", charset = "utf8", sql_mode="TRADITIONAL"):

torndb v0.2 on PyPI

def __init__(self, host, database, user=None, password=None,
                 max_idle_time=7 * 3600, connect_timeout=0,
                 time_zone="+0:00"):
bdarnell commented 10 years ago

I've just updated the version on master to 0.3 and done a release.