[Sqlalchemy-commits] sqlalchemy: have a 'buffer' symbol present in util in py3k as well
Brought to you by:
zzzeek
From: <co...@sq...> - 2010-12-05 21:12:49
|
details: http://hg.sqlalchemy.org/sqlalchemy/sqlalchemy/rev/a552a06d2d47 changeset: 7085:a552a06d2d47 user: zzzeek date: Sun Dec 05 16:12:35 2010 -0500 description: have a 'buffer' symbol present in util in py3k as well diffstat: lib/sqlalchemy/util/compat.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (16 lines): diff -r cdc4ed916da5 -r a552a06d2d47 lib/sqlalchemy/util/compat.py --- a/lib/sqlalchemy/util/compat.py Sun Dec 05 16:09:53 2010 -0500 +++ b/lib/sqlalchemy/util/compat.py Sun Dec 05 16:12:35 2010 -0500 @@ -42,11 +42,11 @@ except ImportError: import pickle -# Py2K # a controversial feature, required by MySQLdb currently def buffer(x): return x +# Py2K buffer = getattr(__builtin__, 'buffer', buffer) # end Py2K |