Skip to content

Commit c411dba

Browse files
committed
Whitespace normalization.
1 parent 8531b1b commit c411dba

File tree

14 files changed

+48
-50
lines changed

14 files changed

+48
-50
lines changed

Lib/getopt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
1010
getopt() -- Parse command line options
1111
gnu_getopt() -- Like getopt(), but allow option and non-option arguments
12-
to be intermixed.
12+
to be intermixed.
1313
GetoptError -- exception (class) raised with 'opt' attribute, which is the
1414
option involved with the exception.
1515
"""
@@ -103,7 +103,7 @@ def gnu_getopt(args, shortopts, longopts = []):
103103
If the first character of the option string is `+', or if the
104104
environment variable POSIXLY_CORRECT is set, then option
105105
processing stops as soon as a non-option argument is encountered.
106-
106+
107107
"""
108108

109109
opts = []

Lib/httplib.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def begin(self):
276276
break
277277
if self.debuglevel > 0:
278278
print "header:", skip
279-
279+
280280
self.status = status
281281
self.reason = reason.strip()
282282
if version == 'HTTP/1.0':
@@ -482,7 +482,7 @@ def __init__(self, host, port=None, strict=None):
482482
self._buffer = []
483483
self.__response = None
484484
self.__state = _CS_IDLE
485-
485+
486486
self._set_hostport(host, port)
487487
if strict is not None:
488488
self.strict = strict
@@ -815,7 +815,7 @@ class SSLFile(SharedSocketClient):
815815
"""File-like object wrapping an SSL socket."""
816816

817817
BUFSIZE = 8192
818-
818+
819819
def __init__(self, sock, ssl, bufsize=None):
820820
SharedSocketClient.__init__(self, sock)
821821
self._ssl = ssl
@@ -1139,7 +1139,7 @@ def read(self, amt=None):
11391139
if amt is None:
11401140
return s + self._file.read()
11411141
else:
1142-
return s + self._file.read(amt - len(s))
1142+
return s + self._file.read(amt - len(s))
11431143
else:
11441144
assert amt <= self._line_left
11451145
i = self._line_offset
@@ -1150,7 +1150,7 @@ def read(self, amt=None):
11501150
if self._line_left == 0:
11511151
self._done()
11521152
return s
1153-
1153+
11541154
def readline(self):
11551155
s = self._line[self._line_offset:]
11561156
self._done()
@@ -1207,7 +1207,7 @@ class HTTP11(HTTP):
12071207
h.close()
12081208

12091209
if hasattr(socket, 'ssl'):
1210-
1210+
12111211
for host, selector in (('sourceforge.net', '/projects/python'),
12121212
('dbserv2.theopalgroup.com', '/mediumfile'),
12131213
('dbserv2.theopalgroup.com', '/smallfile'),

Lib/imaplib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ def read(self, size):
10581058
# sslobj.read() sometimes returns < size bytes
10591059
data = self.sslobj.read(size)
10601060
while len(data) < size:
1061-
data += self.sslobj.read(size-len(data))
1061+
data += self.sslobj.read(size-len(data))
10621062

10631063
return data
10641064

Lib/rfc822.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ def has_key(self, name):
443443

444444
def __contains__(self, name):
445445
"""Determine whether a message contains the named header."""
446-
return name.lower() in self.dict
446+
return name.lower() in self.dict
447447

448448
def keys(self):
449449
"""Get all of a message's header field names."""

Lib/test/regrtest.py

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -711,33 +711,33 @@ def tolist(self, sorted=1):
711711
test_zlib
712712
""",
713713
'atheos':
714-
"""
715-
test_al
716-
test_cd
717-
test_cl
718-
test_curses
719-
test_dl
720-
test_email_codecs
721-
test_gdbm
722-
test_gl
723-
test_imgfile
724-
test_largefile
725-
test_linuxaudiodev
726-
test_locale
727-
test_mhlib
728-
test_mmap
729-
test_mpz
730-
test_nis
731-
test_poll
732-
test_popen2
733-
test_resource
734-
test_socket_ssl
735-
test_socketserver
736-
test_sunaudiodev
737-
test_unicode_file
738-
test_winreg
739-
test_winsound
740-
""",
714+
"""
715+
test_al
716+
test_cd
717+
test_cl
718+
test_curses
719+
test_dl
720+
test_email_codecs
721+
test_gdbm
722+
test_gl
723+
test_imgfile
724+
test_largefile
725+
test_linuxaudiodev
726+
test_locale
727+
test_mhlib
728+
test_mmap
729+
test_mpz
730+
test_nis
731+
test_poll
732+
test_popen2
733+
test_resource
734+
test_socket_ssl
735+
test_socketserver
736+
test_sunaudiodev
737+
test_unicode_file
738+
test_winreg
739+
test_winsound
740+
""",
741741
}
742742

743743
class _ExpectedSkips:

Lib/test/test_atexit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def direct():
3838
import sys
3939
sys.exitfunc = direct
4040
41-
# Make sure atexit doesn't drop
41+
# Make sure atexit doesn't drop
4242
def indirect():
4343
print "indirect exit"
4444

Lib/test/test_b1.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ def __call__(self): pass
102102

103103
print 'complex'
104104
class OS:
105-
def __complex__(self): return 1+10j
105+
def __complex__(self): return 1+10j
106106
class NS(object):
107-
def __complex__(self): return 1+10j
107+
def __complex__(self): return 1+10j
108108
if complex(OS()) != 1+10j: raise TestFailed, '__complex__ in old style class'
109109
if complex(NS()) != 1+10j: raise TestFailed, '__complex__ in new style class'
110110
if complex("1+10j") != 1+10j: raise TestFailed, 'complex("1+10j")'

Lib/test/test_generators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@
814814
... continue
815815
... finally:
816816
... yield i
817-
...
817+
...
818818
>>> g = f()
819819
>>> print g.next()
820820
0

Lib/test/test_httplib.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,3 @@ def makefile(self, mode, bufsize=None):
5656
cookies = r.getheader("Set-Cookie")
5757
if cookies != hdr:
5858
raise AssertionError, "multiple headers not combined properly"
59-

Lib/test/test_signal.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,3 @@ def hup2(signum, frame):
125125
pass
126126
else:
127127
raise TestFailed, "sigsupsend didn't raise"
128-

0 commit comments

Comments
 (0)