Skip to content

Commit 536cf99

Browse files
committed
Whitespace normalization.
1 parent 83a8c39 commit 536cf99

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+33987
-34035
lines changed

Lib/SimpleXMLRPCServer.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,10 @@ def _marshaled_dispatch(self, data, dispatch_method = None):
253253
response = self._dispatch(method, params)
254254
# wrap response in a singleton tuple
255255
response = (response,)
256-
response = xmlrpclib.dumps(response, methodresponse=1,
256+
response = xmlrpclib.dumps(response, methodresponse=1,
257257
allow_none=self.allow_none, encoding=self.encoding)
258258
except Fault, fault:
259-
response = xmlrpclib.dumps(fault, allow_none=self.allow_none,
259+
response = xmlrpclib.dumps(fault, allow_none=self.allow_none,
260260
encoding=self.encoding)
261261
except:
262262
# report exception back to server
@@ -427,8 +427,8 @@ def do_POST(self):
427427
"""
428428

429429
try:
430-
# Get arguments by reading body of request.
431-
# We read this in chunks to avoid straining
430+
# Get arguments by reading body of request.
431+
# We read this in chunks to avoid straining
432432
# socket.read(); around the 10 or 15Mb mark, some platforms
433433
# begin to have problems (bug #792570).
434434
max_chunk_size = 10*1024*1024
@@ -490,8 +490,8 @@ def __init__(self, addr, requestHandler=SimpleXMLRPCRequestHandler,
490490
SimpleXMLRPCDispatcher.__init__(self, allow_none, encoding)
491491
SocketServer.TCPServer.__init__(self, addr, requestHandler)
492492

493-
# [Bug #1222790] If possible, set close-on-exec flag; if a
494-
# method spawns a subprocess, the subprocess shouldn't have
493+
# [Bug #1222790] If possible, set close-on-exec flag; if a
494+
# method spawns a subprocess, the subprocess shouldn't have
495495
# the listening socket open.
496496
if hasattr(fcntl, 'FD_CLOEXEC'):
497497
flags = fcntl.fcntl(self.fileno(), fcntl.F_GETFD)

Lib/codecs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def read(self, size=-1, chars=-1, firstline=False):
269269
if self.linebuffer:
270270
self.charbuffer = "".join(self.linebuffer)
271271
self.linebuffer = None
272-
272+
273273
# read until we get the required number of characters (if available)
274274
while True:
275275
# can the request can be satisfied from the character buffer?
@@ -335,7 +335,7 @@ def readline(self, size=None, keepends=True):
335335
if not keepends:
336336
line = line.splitlines(False)[0]
337337
return line
338-
338+
339339
readsize = size or 72
340340
line = ""
341341
# If size is given, we call read() only once

Lib/cookielib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1528,7 +1528,7 @@ def _process_rfc2109_cookies(self, cookies):
15281528
for cookie in cookies:
15291529
if cookie.version == 1:
15301530
cookie.rfc2109 = True
1531-
if rfc2109_as_ns:
1531+
if rfc2109_as_ns:
15321532
# treat 2109 cookies as Netscape cookies rather than
15331533
# as RFC2965 cookies
15341534
cookie.version = 0

0 commit comments

Comments
 (0)