Skip to content

Commit

Permalink
Whitespace normalization.
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-one committed Dec 25, 2005
1 parent 83a8c39 commit 536cf99
Show file tree
Hide file tree
Showing 82 changed files with 33,987 additions and 34,035 deletions.
12 changes: 6 additions & 6 deletions Lib/SimpleXMLRPCServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,10 @@ def _marshaled_dispatch(self, data, dispatch_method = None):
response = self._dispatch(method, params)
# wrap response in a singleton tuple
response = (response,)
response = xmlrpclib.dumps(response, methodresponse=1,
response = xmlrpclib.dumps(response, methodresponse=1,
allow_none=self.allow_none, encoding=self.encoding)
except Fault, fault:
response = xmlrpclib.dumps(fault, allow_none=self.allow_none,
response = xmlrpclib.dumps(fault, allow_none=self.allow_none,
encoding=self.encoding)
except:
# report exception back to server
Expand Down Expand Up @@ -427,8 +427,8 @@ def do_POST(self):
"""

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

# [Bug #1222790] If possible, set close-on-exec flag; if a
# method spawns a subprocess, the subprocess shouldn't have
# [Bug #1222790] If possible, set close-on-exec flag; if a
# method spawns a subprocess, the subprocess shouldn't have
# the listening socket open.
if hasattr(fcntl, 'FD_CLOEXEC'):
flags = fcntl.fcntl(self.fileno(), fcntl.F_GETFD)
Expand Down
4 changes: 2 additions & 2 deletions Lib/codecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def read(self, size=-1, chars=-1, firstline=False):
if self.linebuffer:
self.charbuffer = "".join(self.linebuffer)
self.linebuffer = None

# read until we get the required number of characters (if available)
while True:
# can the request can be satisfied from the character buffer?
Expand Down Expand Up @@ -335,7 +335,7 @@ def readline(self, size=None, keepends=True):
if not keepends:
line = line.splitlines(False)[0]
return line

readsize = size or 72
line = ""
# If size is given, we call read() only once
Expand Down
2 changes: 1 addition & 1 deletion Lib/cookielib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1528,7 +1528,7 @@ def _process_rfc2109_cookies(self, cookies):
for cookie in cookies:
if cookie.version == 1:
cookie.rfc2109 = True
if rfc2109_as_ns:
if rfc2109_as_ns:
# treat 2109 cookies as Netscape cookies rather than
# as RFC2965 cookies
cookie.version = 0
Expand Down
Loading

0 comments on commit 536cf99

Please sign in to comment.