diff options
| -rwxr-xr-x | Lib/profile.py | 4 | ||||
| -rw-r--r-- | Misc/NEWS | 2 |
2 files changed, 4 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: @@ -21,6 +21,8 @@ Core and Builtins Library ------- +- Issue #6635: Fix profiler printing usage message. + - Issue #6888: pdb's alias command was broken when no arguments were given. - Issue #6795: int(Decimal('nan')) now raises ValueError instead of |
