Home | History | Annotate | Download | only in python2.7

Lines Matching refs:re

98 import sys, traceback, inspect, linecache, os, re
235 return re.sub('(?m)^(?!$)', indent*' ', s)
558 _EXAMPLE_RE = re.compile(r'''
569 ''', re.MULTILINE | re.VERBOSE)
580 _EXCEPTION_RE = re.compile(r"""
591 """, re.VERBOSE | re.MULTILINE | re.DOTALL)
595 _IS_BLANK_OR_COMMENT = re.compile(r'^[ ]*(#.*)?$').match
676 # Divide source into lines; check that they're properly
688 if len(want_lines) > 1 and re.match(r' *$', want_lines[-1]):
713 _OPTION_DIRECTIVE_RE = re.compile(r'#\s*doctest:\s*([^\n\'"]*)$',
714 re.MULTILINE)
744 _INDENT_RE = re.compile('^([ ]*)(?=\S)', re.MULTILINE)
1045 pat = re.compile(r'^\s*class\s*%s\b' %
1068 pat = re.compile('(^|.*:)\s*\w*("|\')')
1326 m1 = re.match(r'(?:[^:]*\.)?([^:]*:)', example.exc_msg)
1327 m2 = re.match(r'(?:[^:]*\.)?([^:]*:)', exc_msg)
1365 __LINECACHE_FILENAME_RE = re.compile(r'<doctest '
1420 # when we're inside the debugger.
1530 # if they're string-identical, always return true.
1546 want = re.sub('(?m)^%s\s*?$' % re.escape(BLANKLINE_MARKER),
1550 got = re.sub('(?m)^\s*?$', '', got)
1607 got = re.sub('(?m)^[ ]*(?=\n)', BLANKLINE_MARKER, got)
1633 # If we're not using diff, then simply list the expected
1858 when you're done fiddling.
1976 when you're done fiddling.