Skip to content

Commit 3e65a83

Browse files
author
matthias.klose
committed
Merged revisions 74775 via svnmerge from
svn+ssh://[email protected]/python/branches/py3k ................ r74775 | matthias.klose | 2009-09-13 17:18:53 +0200 (So, 13 Sep 2009) | 9 lines Merged revisions 74773 via svnmerge from svn+ssh://[email protected]/python/trunk ........ r74773 | matthias.klose | 2009-09-13 17:09:24 +0200 (So, 13 Sep 2009) | 2 lines Issue #6635: Fix profiler printing usage message. ........ ................ git-svn-id: http://svn.python.org/projects/python/branches/release31-maint@74777 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent ab2f1cc commit 3e65a83

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Lib/profile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -605,9 +605,9 @@ def main():
605605
sys.exit(2)
606606

607607
(options, args) = parser.parse_args()
608-
sys.argv[:] = args
609608

610-
if (len(sys.argv) > 0):
609+
if (len(args) > 0):
610+
sys.argv[:] = args
611611
sys.path.insert(0, os.path.dirname(sys.argv[0]))
612612
fp = open(sys.argv[0])
613613
try:

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ Core and Builtins
2121
Library
2222
-------
2323

24+
- Issue #6635: Fix profiler printing usage message.
25+
2426
- Issue #6888: pdb's alias command was broken when no arguments were given.
2527

2628
- Issue #6795: int(Decimal('nan')) now raises ValueError instead of

0 commit comments

Comments
 (0)