diff options
author | Matthias Klose <doko@ubuntu.com> | 2009-09-13 15:18:53 (GMT) |
---|---|---|
committer | Matthias Klose <doko@ubuntu.com> | 2009-09-13 15:18:53 (GMT) |
commit | f6b76b0c643256f0dee98bb2432160dad05cfe16 (patch) | |
tree | bae1b884699497219901b62f9ac5fb51a98ffabc /Lib/profile.py | |
parent | 659c7b1bedbd566de7a6e60de1a1e637ca52f0b0 (diff) | |
download | cpython-f6b76b0c643256f0dee98bb2432160dad05cfe16.zip cpython-f6b76b0c643256f0dee98bb2432160dad05cfe16.tar.gz cpython-f6b76b0c643256f0dee98bb2432160dad05cfe16.tar.bz2 |
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-x | Lib/profile.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/profile.py b/Lib/profile.py index d1a869a..4eb86a8 100755 --- a/Lib/profile.py +++ b/Lib/profile.py @@ -598,9 +598,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: |