~pythonregexp2.7/python/issue2636-02

« back to all changes in this revision

Viewing changes to Lib/sre_compile.py

  • Committer: Jeffrey C. Jacobs
  • Date: 2008-04-27 13:32:55 UTC
  • mfrom: (39022.1.2 issue2636)
  • Revision ID: timehorse@starship.python.net-20080427133255-y1rdx50idt9shrjr
Merged in main branch changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
"""Internal support module for sre"""
12
12
 
13
13
import _sre, sys
14
 
import sre_parse
 
14
 
15
15
from sre_constants import *
16
16
 
17
17
assert _sre.MAGIC == MAGIC, "SRE module mismatch"
502
502
    # internal: convert pattern list to internal format
503
503
 
504
504
    if isstring(p):
 
505
        import sre_parse
505
506
        pattern = p
506
507
        p = sre_parse.parse(p, flags)
507
508
    else: