~pythonregexp2.7/python/issue2636-10

« back to all changes in this revision

Viewing changes to Lib/sre_parse.py

  • Committer: Jeffrey C. Jacobs
  • Date: 2008-04-27 12:54:15 UTC
  • Revision ID: timehorse@starship.python.net-20080427125415-3cepm3b3g72heawx
(from original local svn repository): Added ingore directives to not
allow .pyc and .pyo files to be checked in; could not be done under
DOS because there is no valid editor.
 
Reapplied my edits to sre_parse.py:

Removed unused code for Character Classes -- will be added back in
sub-branch 6 for adding in Character Class support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
424
424
            # character set
425
425
            set = []
426
426
            setappend = set.append
427
 
##          if sourcematch(":"):
428
 
##              pass # handle character classes
429
427
            if sourcematch("^"):
430
428
                setappend((NEGATE, None))
431
429
            # check remaining characters