# HG changeset patch
# User J. H. Palmieri <palmieri@math.washington.edu>
# Date 1287089112 25200
# Node ID 7d5feddc26ee9df6615baf497279ca2935c43c99
# Parent 2fe5d13dbea22ec95e71b0b4021fb9d574bf366f
#10129: avoid false positives in get_systems
diff -r 2fe5d13dbea2 -r 7d5feddc26ee sage/misc/citation.pyx
a
|
b
|
|
1 | | from sage.misc.all import tmp_filename, preparse |
| 1 | from sage.misc.all import tmp_filename, preparse, SAGE_ROOT |
2 | 2 | |
3 | 3 | systems = {} |
4 | 4 | systems['PARI'] = ['sage.libs.pari', 'sage.interfaces.gp'] |
… |
… |
def get_systems(cmd): |
78 | 78 | stats = pstats.Stats(filename) |
79 | 79 | |
80 | 80 | #Strings is a list of method names and modules which get run |
81 | | strings = [a[0] + " " + a[2] for a in stats.stats.keys()] |
| 81 | strings = [a[0].replace(SAGE_ROOT, "") + " " + a[2] for a in stats.stats.keys()] |
82 | 82 | |
83 | 83 | #Remove trivial functions |
84 | 84 | bad_res = [re.compile(r'is_.*Element')] |