summaryrefslogtreecommitdiffstats
path: root/Lib/profile.py
diff options
context:
space:
mode:
authorMatthias Klose <doko@ubuntu.com>2009-09-13 15:31:14 (GMT)
committerMatthias Klose <doko@ubuntu.com>2009-09-13 15:31:14 (GMT)
commitb11174364e180c72567c907601629ece701ccee6 (patch)
tree77ba84839d86807a30c0d7cec75e6034fc997102 /Lib/profile.py
parentd43378046d5e96fd431353ac488b1cdece7f9d65 (diff)
downloadcpython-b11174364e180c72567c907601629ece701ccee6.zip
cpython-b11174364e180c72567c907601629ece701ccee6.tar.gz
cpython-b11174364e180c72567c907601629ece701ccee6.tar.bz2
Merged revisions 74775 via svnmerge from
svn+ssh://pythondev@svn.python.org/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://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. ........ ................
Diffstat (limited to 'Lib/profile.py')
-rwxr-xr-xLib/profile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/profile.py b/Lib/profile.py
index cdc2479..d969246 100755
--- a/Lib/profile.py
+++ b/Lib/profile.py
@@ -605,9 +605,9 @@ def main():
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: