From: Mike Bayer Date: Thu, 21 Jan 2010 15:56:23 +0000 (+0000) Subject: fixed the illegal_initial_chars collection + unit test, [ticket:1659] X-Git-Tag: rel_0_6beta1~47 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c5e29f0eedfd0369cfedfaa8c3e903443fe63a3e;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git fixed the illegal_initial_chars collection + unit test, [ticket:1659] --- diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py index c3ef9288a3..2d099e9d54 100644 --- a/lib/sqlalchemy/sql/compiler.py +++ b/lib/sqlalchemy/sql/compiler.py @@ -47,7 +47,7 @@ RESERVED_WORDS = set([ 'using', 'verbose', 'when', 'where']) LEGAL_CHARACTERS = re.compile(r'^[A-Z0-9_$]+$', re.I) -ILLEGAL_INITIAL_CHARACTERS = set(xrange(0, 10)).union(['$']) +ILLEGAL_INITIAL_CHARACTERS = set([str(x) for x in xrange(0, 10)]).union(['$']) BIND_PARAMS = re.compile(r'(?