diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-02-25 22:58:02 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-02-25 22:58:02 +0000 |
commit | c4be0b84a58ec9162c45fc57a6baa9e5fb7c966f (patch) | |
tree | 4dcaa4470452fa9e84fd3ad194979f59bd2915be | |
parent | 060e30118373c909d4f96f7c3cad2b723fce95ab (diff) | |
download | sqlalchemy-c4be0b84a58ec9162c45fc57a6baa9e5fb7c966f.tar.gz |
modify the py3k check to check for bytes
-rw-r--r-- | lib/sqlalchemy/types.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sqlalchemy/types.py b/lib/sqlalchemy/types.py index a51e271f9..d5f1d9f14 100644 --- a/lib/sqlalchemy/types.py +++ b/lib/sqlalchemy/types.py @@ -587,7 +587,11 @@ class String(Concatenable, TypeEngine): if dialect.supports_unicode_binds and self.convert_unicode != 'force': if self._warn_on_bytestring: def process(value): + # Py3K + #if isinstance(value, bytes): + # Py2K if isinstance(value, str): + # end Py2K util.warn("Unicode type received non-unicode bind " "param value %r" % value) return value |