File: re.py

package info (click to toggle)
python2.1 2.1.3dfsg-1sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 38,028 kB
  • ctags: 64,228
  • sloc: python: 186,023; ansic: 184,754; xml: 43,435; sh: 12,381; makefile: 3,523; perl: 3,108; lisp: 2,460; cpp: 106; sed: 2
file content (34 lines) | stat: -rw-r--r-- 817 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#
# Minimal "re" compatibility wrapper
#
# If your regexps don't work well under 2.0b1, you can switch
# to the old engine ("pre") down below.
#
# To help us fix any remaining bugs in the new engine, please
# report what went wrong.  You can either use the following web
# page:
#
#    http://sourceforge.net/bugs/?group_id=5470
#
# or send a mail to SRE's author:
#
#    Fredrik Lundh <effbot@telia.com>
#
# Make sure to include the pattern, the string SRE failed to
# match, and what result you expected.
#
# thanks /F
#

engine = "sre"
# engine = "pre"

if engine == "sre":
    # New unicode-aware engine
    from sre import *
    from sre import __all__
else:
    # Old 1.5.2 engine.  This one supports 8-bit strings only,
    # and will be removed in 2.0 final.
    from pre import *
    from pre import __all__