diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2012-02-23 14:31:16 +0000 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2012-02-23 14:41:51 +0000 |
commit | f782470d7109c62101e40422923bc9dfec28cfc9 (patch) | |
tree | 409a10e5dbed202f64698794001d8b0e3ca29f4d /lib/extras.py | |
parent | 1332d4a0d8d758b003f1d9d3de825e7317129866 (diff) | |
download | psycopg2-f782470d7109c62101e40422923bc9dfec28cfc9.tar.gz |
Parens don't need escaping in regexp char classes
Diffstat (limited to 'lib/extras.py')
-rw-r--r-- | lib/extras.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/extras.py b/lib/extras.py index ae77a88..3237cab 100644 --- a/lib/extras.py +++ b/lib/extras.py @@ -849,9 +849,9 @@ class CompositeCaster(object): return self._ctor(*attrs) _re_tokenize = regex.compile(r""" - \(? ([,\)]) # an empty token, representing NULL + \(? ([,)]) # an empty token, representing NULL | \(? " ((?: [^"] | "")*) " [,)] # or a quoted string -| \(? ([^",\)]+) [,\)] # or an unquoted string +| \(? ([^",)]+) [,)] # or an unquoted string """, regex.VERBOSE) _re_undouble = regex.compile(r'(["\\])\1') |