From: Tim Peters Date: Mon, 10 Jan 2005 16:48:37 +0000 (+0000) Subject: Whitespace normalization. X-Git-Tag: v2.5a0~2140 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b497c106d54f12fee97a362af748c70e0c66ef4a;p=thirdparty%2FPython%2Fcpython.git Whitespace normalization. --- diff --git a/Lib/profile.py b/Lib/profile.py index 4b5eb4dbc343..8815ac3d6ac0 100755 --- a/Lib/profile.py +++ b/Lib/profile.py @@ -581,14 +581,14 @@ def main(): help="Save stats to ", default=None) parser.add_option('-s', '--sort', dest="sort", help="Sort order when printing to stdout, based on pstats.Stats class", default=-1) - + if not sys.argv[1:]: parser.print_usage() sys.exit(2) - + (options, args) = parser.parse_args() sys.argv[:] = args - + if (len(sys.argv) > 0): sys.path.insert(0, os.path.dirname(sys.argv[0])) run('execfile(%r)' % (sys.argv[0],), options.outfile, options.sort)