# HG changeset patch # User Paul Boddie # Date 1225136855 -3600 # Node ID 0ac9701862dff6315aab8d9ac9e1c9a94b0c3ed0 # Parent 0aea3bf44a3c95f6574dab8873467991803e023b Changed the regular expression method to reflect the behaviour described in the documentation. diff -r 0aea3bf44a3c -r 0ac9701862df astgrep.py --- a/astgrep.py Mon Oct 27 01:17:02 2008 +0100 +++ b/astgrep.py Mon Oct 27 20:47:35 2008 +0100 @@ -134,7 +134,7 @@ if term is None: op = None else: - op = re.compile(term).match + op = re.compile(term).search # Perform the search either in a single file or in a directory hierarchy.