Commits

Mike Bayer committed 1e332e0

don't split the regexps for chop_traceback()

  • Participants
  • Parent commits 9a95a39
  • Branches rel_0_8

Comments (0)

Files changed (1)

File lib/sqlalchemy/util/langhelpers.py

         warnings.warn(msg, stacklevel=stacklevel)
 
 
-_SQLA_RE = re.compile(r'sqlalchemy/([a-z_]+/){0,2}[a-z_]+\.py')
-_UNITTEST_RE = re.compile(r'unit(?:2|test2?/)')
-
-
 def only_once(fn):
     """Decorate the given function to be a no-op after it is called exactly
     once."""
     return update_wrapper(go, fn)
 
 
+_SQLA_RE = re.compile(r'sqlalchemy/([a-z_]+/){0,2}[a-z_]+\.py')
+_UNITTEST_RE = re.compile(r'unit(?:2|test2?/)')
 
 def chop_traceback(tb, exclude_prefix=_UNITTEST_RE, exclude_suffix=_SQLA_RE):
     """Chop extraneous lines off beginning and end of a traceback.