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

Skip to content

Commit 98d9fd3

Browse files
committed
Simple changes by Gerrit Holl - move author acknowledgements out of
docstrings into comments.
1 parent ee28c3a commit 98d9fd3

9 files changed

Lines changed: 46 additions & 43 deletions

File tree

Lib/StringIO.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
2020
Notes:
2121
- Using a real file is often faster (but less convenient).
22+
- There's also a much faster implementation in C, called cStringIO, but
23+
it's not subclassable.
2224
- fileno() is left unimplemented so that code which uses it triggers
2325
an exception early.
2426
- Seeking far beyond EOF and then writing will insert real null

Lib/cgi.py

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -399,23 +399,22 @@
399399
- Don't try to give a CGI script a set-uid mode. This doesn't work on
400400
most systems, and is a security liability as well.
401401
402-
403-
History
404-
-------
405-
406-
Michael McLay started this module. Steve Majewski changed the
407-
interface to SvFormContentDict and FormContentDict. The multipart
408-
parsing was inspired by code submitted by Andreas Paepcke. Guido van
409-
Rossum rewrote, reformatted and documented the module and is currently
410-
responsible for its maintenance.
411-
412-
413-
XXX The module is getting pretty heavy with all those docstrings.
414-
Perhaps there should be a slimmed version that doesn't contain all those
415-
backwards compatible and debugging classes and functions?
416-
417402
"""
418403

404+
# XXX The module is getting pretty heavy with all those docstrings.
405+
# Perhaps there should be a slimmed version that doesn't contain all those
406+
# backwards compatible and debugging classes and functions?
407+
408+
# History
409+
# -------
410+
#
411+
# Michael McLay started this module. Steve Majewski changed the
412+
# interface to SvFormContentDict and FormContentDict. The multipart
413+
# parsing was inspired by code submitted by Andreas Paepcke. Guido van
414+
# Rossum rewrote, reformatted and documented the module and is currently
415+
# responsible for its maintenance.
416+
#
417+
419418
__version__ = "2.2"
420419

421420

Lib/code.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
"""Utilities needed to emulate Python's interactive interpreter.
22
3-
Inspired by similar code by Jeff Epler and Fredrik Lundh.
43
"""
54

5+
# Inspired by similar code by Jeff Epler and Fredrik Lundh.
6+
67

78
import sys
89
import string

Lib/ftplib.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
Based on RFC 959: File Transfer Protocol
44
(FTP), by J. Postel and J. Reynolds
55
6-
Changes and improvements suggested by Steve Majewski.
7-
Modified by Jack to work on the mac.
8-
Modified by Siebren to support docstrings and PASV.
9-
10-
116
Example:
127
138
>>> from ftplib import FTP
@@ -34,6 +29,11 @@
3429
python ftplib.py -d localhost -l -p -l
3530
"""
3631

32+
#
33+
# Changes and improvements suggested by Steve Majewski.
34+
# Modified by Jack to work on the mac.
35+
# Modified by Siebren to support docstrings and PASV.
36+
#
3737

3838
import os
3939
import sys

Lib/getpass.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
On Windows, the msvcrt module will be used.
77
On the Mac EasyDialogs.AskPassword is used, if available.
88
9-
Authors: Piers Lauder (original)
10-
Guido van Rossum (Windows support and cleanup)
119
"""
1210

11+
# Authors: Piers Lauder (original)
12+
# Guido van Rossum (Windows support and cleanup)
13+
1314
import sys
1415

1516
def unix_getpass(prompt='Password: '):

Lib/imaplib.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
44
Based on RFC 2060.
55
6-
Author: Piers Lauder <[email protected]> December 1997.
7-
8-
Authentication code contributed by Donn Cave <[email protected]> June 1998.
9-
106
Public class: IMAP4
117
Public variable: Debug
128
Public functions: Internaldate2tuple
@@ -15,6 +11,10 @@
1511
Time2Internaldate
1612
"""
1713

14+
# Author: Piers Lauder <[email protected]> December 1997.
15+
#
16+
# Authentication code contributed by Donn Cave <[email protected]> June 1998.
17+
1818
__version__ = "2.32"
1919

2020
import binascii, re, socket, string, time, random, sys

Lib/poplib.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
"""A POP3 client class.
22
33
Based on the J. Myers POP3 draft, Jan. 96
4-
5-
Author: David Ascher <[email protected]>
6-
[heavily stealing from nntplib.py]
7-
Updated: Piers Lauder <[email protected]> [Jul '97]
84
"""
95

6+
# Author: David Ascher <[email protected]>
7+
# [heavily stealing from nntplib.py]
8+
# Updated: Piers Lauder <[email protected]> [Jul '97]
9+
1010
# Example (see the test function at the end of this file)
1111

1212
TESTSERVER = "localhost"

Lib/smtplib.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@
22

33
"""SMTP/ESMTP client class.
44
5-
Author: The Dragon De Monsyne <[email protected]>
6-
ESMTP support, test code and doc fixes added by
7-
Eric S. Raymond <[email protected]>
8-
Better RFC 821 compliance (MAIL and RCPT, and CRLF in data)
9-
by Carey Evans <[email protected]>, for picky mail servers.
10-
11-
This was modified from the Python 1.5 library HTTP lib.
12-
135
This should follow RFC 821 (SMTP) and RFC 1869 (ESMTP).
146
157
Notes:
@@ -39,6 +31,14 @@
3931
>>> s.quit()
4032
"""
4133

34+
# Author: The Dragon De Monsyne <[email protected]>
35+
# ESMTP support, test code and doc fixes added by
36+
# Eric S. Raymond <[email protected]>
37+
# Better RFC 821 compliance (MAIL and RCPT, and CRLF in data)
38+
# by Carey Evans <[email protected]>, for picky mail servers.
39+
#
40+
# This was modified from the Python 1.5 library HTTP lib.
41+
4242
import socket
4343
import string
4444
import re

Lib/whrandom.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@
2525
random generators, and to choose from other ranges.
2626
2727
28-
Translated by Guido van Rossum from C source provided by
29-
Adrian Baddeley.
30-
31-
3228
3329
Multi-threading note: the random number generator used here is not
3430
thread-safe; it is possible that nearly simultaneous calls in
@@ -37,6 +33,10 @@
3733
down in the serial case by using a lock here.)
3834
"""
3935

36+
# Translated by Guido van Rossum from C source provided by
37+
# Adrian Baddeley.
38+
39+
4040
class whrandom:
4141
def __init__(self, x = 0, y = 0, z = 0):
4242
"""Initialize an instance.

0 commit comments

Comments
 (0)