]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Use compat.string_types to check for visit name string
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 12 Aug 2019 00:44:42 +0000 (20:44 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 12 Aug 2019 02:29:42 +0000 (22:29 -0400)
commit3a542005a5f38556dc45c5bc8f256a154ee72c8a
treec573e56e4a9ef86f8a429d2c677b5865cc0ebeed
parentf5e57f7c311288d892894edcc44d901b5bfbb3d1
Use compat.string_types to check for visit name string

Th visitor optimization looking for plain string needs to
accommodate for u"" in Python 2 due to the unicode_literals
future.

Fixes: #4800
Change-Id: I5e3136f2f2cbd5f24d89186b599f59ea2e7f1550
lib/sqlalchemy/sql/visitors.py