Mercurial > cpython-lru_cache-weakref
diff Tools/scripts/objgraph.py @ 37021:4727f260f6f8 legacy-trunk
Remove regsub, reconvert, regex, regex_syntax and everything under lib-old.
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Thu, 16 Mar 2006 06:50:13 +0000 |
| parents | 981fff7363b9 |
| children | 46625e6122e9 |
line wrap: on
line diff
--- a/Tools/scripts/objgraph.py Thu Mar 16 06:40:39 2006 +0000 +++ b/Tools/scripts/objgraph.py Thu Mar 16 06:50:13 2006 +0000 @@ -22,7 +22,7 @@ import sys import os import getopt -import regex +import re # Types of symbols. # @@ -32,7 +32,7 @@ # Regular expression to parse "nm -o" output. # -matcher = regex.compile('\(.*\):\t?........ \(.\) \(.*\)$') +matcher = re.compile('(.*):\t?........ (.) (.*)$') # Store "item" in "dict" under "key". # The dictionary maps keys to lists of items.
