[Python-checkins] r74775 - in python/branches/py3k: Lib/profile.py Misc/NEWS
matthias.klose
python-checkins at python.org
Sun Sep 13 17:18:53 CEST 2009
Author: matthias.klose
Date: Sun Sep 13 17:18:53 2009
New Revision: 74775
Log:
Merged revisions 74773 via svnmerge from
svn+ssh://pythondev@svn.python.org/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.
........
Modified:
python/branches/py3k/ (props changed)
python/branches/py3k/Lib/profile.py
python/branches/py3k/Misc/NEWS
Modified: python/branches/py3k/Lib/profile.py
==============================================================================
--- python/branches/py3k/Lib/profile.py (original)
+++ python/branches/py3k/Lib/profile.py Sun Sep 13 17:18:53 2009
@@ -598,9 +598,9 @@
sys.exit(2)
(options, args) = parser.parse_args()
- sys.argv[:] = args
- if (len(sys.argv) > 0):
+ if (len(args) > 0):
+ sys.argv[:] = args
sys.path.insert(0, os.path.dirname(sys.argv[0]))
fp = open(sys.argv[0])
try:
Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS (original)
+++ python/branches/py3k/Misc/NEWS Sun Sep 13 17:18:53 2009
@@ -70,6 +70,8 @@
Library
-------
+- Issue #6635: Fix profiler printing usage message.
+
- Issue #6856: Add a filter keyword argument to TarFile.add().
- Issue #6888: pdb's alias command was broken when no arguments were given.
More information about the Python-checkins
mailing list