Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ee19c77

Browse files
committed
Remove mentions of previous license in profile module docs (#12417 followup).
Also remove an extra docstring.
1 parent 8cdc40e commit ee19c77

3 files changed

Lines changed: 1 addition & 59 deletions

File tree

Doc/library/profile.rst

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The Python standard library provides two different profilers:
3737
2. :mod:`profile`, a pure Python module whose interface is imitated by
3838
:mod:`cProfile`. Adds significant overhead to profiled programs. If you're
3939
trying to extend the profiler in some way, the task might be easier with this
40-
module. Copyright © 1994, by InfoSeek Corporation.
40+
module.
4141

4242
The :mod:`profile` and :mod:`cProfile` modules export the same interface, so
4343
they are mostly interchangeable; :mod:`cProfile` has a much lower overhead but
@@ -589,27 +589,3 @@ The resulting profiler will then call :func:`your_time_func`.
589589
functions should be used with care and should be as fast as possible. For the
590590
best results with a custom timer, it might be necessary to hard-code it in the C
591591
source of the internal :mod:`_lsprof` module.
592-
593-
594-
Copyright and License Notices
595-
=============================
596-
597-
Copyright © 1994, by InfoSeek Corporation, all rights reserved.
598-
599-
Permission to use, copy, modify, and distribute this Python software and its
600-
associated documentation for any purpose (subject to the restriction in the
601-
following sentence) without fee is hereby granted, provided that the above
602-
copyright notice appears in all copies, and that both that copyright notice and
603-
this permission notice appear in supporting documentation, and that the name of
604-
InfoSeek not be used in advertising or publicity pertaining to distribution of
605-
the software without specific, written prior permission. This permission is
606-
explicitly restricted to the copying and modification of the software to remain
607-
in Python, compiled Python, or other languages (such as C) wherein the modified
608-
or derived code is exclusively imported into a Python module.
609-
610-
INFOSEEK CORPORATION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
611-
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT
612-
SHALL INFOSEEK CORPORATION BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
613-
DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
614-
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
615-
OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Doc/license.rst

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -489,36 +489,6 @@ The :mod:`http.cookies` module contains the following notice::
489489
PERFORMANCE OF THIS SOFTWARE.
490490

491491

492-
Profiling
493-
---------
494-
495-
The :mod:`profile` and :mod:`pstats` modules contain the following notice::
496-
497-
Copyright 1994, by InfoSeek Corporation, all rights reserved.
498-
Written by James Roskind
499-
500-
Permission to use, copy, modify, and distribute this Python software
501-
and its associated documentation for any purpose (subject to the
502-
restriction in the following sentence) without fee is hereby granted,
503-
provided that the above copyright notice appears in all copies, and
504-
that both that copyright notice and this permission notice appear in
505-
supporting documentation, and that the name of InfoSeek not be used in
506-
advertising or publicity pertaining to distribution of the software
507-
without specific, written prior permission. This permission is
508-
explicitly restricted to the copying and modification of the software
509-
to remain in Python, compiled Python, or other languages (such as C)
510-
wherein the modified or derived code is exclusively imported into a
511-
Python module.
512-
513-
INFOSEEK CORPORATION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
514-
SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
515-
FITNESS. IN NO EVENT SHALL INFOSEEK CORPORATION BE LIABLE FOR ANY
516-
SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
517-
RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
518-
CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
519-
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
520-
521-
522492
Execution tracing
523493
-----------------
524494

Lib/pstats.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
"""Class for printing reports on profiled python code."""
22

3-
# Class for printing reports on profiled python code. rev 1.0 4/1/94
4-
#
53
# Written by James Roskind
64
# Based on prior profile module by Sjoerd Mullender...
75
# which was hacked somewhat by: Guido van Rossum
86

9-
"""Class for profiling Python code."""
10-
117
# Copyright Disney Enterprises, Inc. All Rights Reserved.
128
# Licensed to PSF under a Contributor Agreement
139
#

0 commit comments

Comments
 (0)