Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#15317 - [python] profile and cProfile modules does not take option "sort" values properly

Attached to Project: Arch Linux
Opened by Roy Zuo (roylez) - Tuesday, 30 June 2009, 01:40 GMT
Last edited by Allan McRae (Allan) - Thursday, 02 July 2009, 15:33 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The "sort" command line should take int values but that is not indicated in the program.

i.e.: In /usr/lib/Python2.6/cProfile.py, line

171 parser.add_option('-s', '--sort', dest="sort",
172 help="Sort order when printing to stdout, based on pstats.Stats class", default=-1)

change line 171 to as following can fix the problem.

parser.add_option('-s', '--sort', dest="sort", type=int,

Additional info:
* package version(s)

Python, all versions

Steps to reproduce:

simply try the following command:

python -m cProfile -s 1
This task depends upon

Closed by  Allan McRae (Allan)
Thursday, 02 July 2009, 15:33 GMT
Reason for closing:  Upstream
Comment by Allan McRae (Allan) - Tuesday, 30 June 2009, 02:05 GMT
This is an upstream issue. Please file this upstream (or find an existing report) and post the link here.

Loading...