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

Skip to content

Commit 658cba6

Browse files
committed
Whitespace normalization.
1 parent 3c61c35 commit 658cba6

8 files changed

Lines changed: 21 additions & 22 deletions

File tree

Lib/asynchat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- Mode: Python; tab-width: 4 -*-
2-
# Id: asynchat.py,v 2.26 2000/09/07 22:29:26 rushing Exp
2+
# Id: asynchat.py,v 2.26 2000/09/07 22:29:26 rushing Exp
33
# Author: Sam Rushing <[email protected]>
44

55
# ======================================================================

Lib/pickle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ def save_string(self, object):
323323
else:
324324
self.write(BINSTRING + s + object)
325325
else:
326-
if unicode:
326+
if unicode:
327327
object = object.replace(u"\\", u"\\u005c")
328328
object = object.replace(u"\n", u"\\u000a")
329329
object = object.encode('raw-unicode-escape')
@@ -335,7 +335,7 @@ def save_string(self, object):
335335
self.write(self.put(memo_len))
336336
memo[d] = (memo_len, object)
337337
dispatch[StringType] = save_string
338-
338+
339339
def save_tuple(self, object):
340340

341341
write = self.write

Lib/popen2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def popen4(cmd, bufsize=-1, mode='t'):
158158
return inst.fromchild, inst.tochild
159159

160160
__all__.extend(["Popen3", "Popen4"])
161-
161+
162162
def _test():
163163
cmd = "cat"
164164
teststr = "ab cd\n"

Lib/posixpath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ def normpath(path):
346346
initial_slashes = path.startswith('/')
347347
# POSIX allows one or two initial slashes, but treats three or more
348348
# as single slash.
349-
if (initial_slashes and
349+
if (initial_slashes and
350350
path.startswith('//') and not path.startswith('///')):
351351
initial_slashes = 2
352352
comps = path.split('/')

Lib/pyclbr.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,4 +334,3 @@ def readmodule_ex(module, path=[], inpackage=0):
334334

335335
def _indent(ws, _expandtabs=string.expandtabs):
336336
return len(_expandtabs(ws, TABWIDTH))
337-

Lib/smtpd.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@ def flush(self): pass
9090
EMPTYSTRING = ''
9191

9292

93-
93+
9494
def usage(code, msg=''):
9595
print >> sys.stderr, __doc__ % globals()
9696
if msg:
9797
print >> sys.stderr, msg
9898
sys.exit(code)
9999

100100

101-
101+
102102
class SMTPChannel(asynchat.async_chat):
103103
COMMAND = 0
104104
DATA = 1
@@ -263,7 +263,7 @@ def smtp_DATA(self, arg):
263263
self.push('354 End data with <CR><LF>.<CR><LF>')
264264

265265

266-
266+
267267
class SMTPServer(asyncore.dispatcher):
268268
def __init__(self, localaddr, remoteaddr):
269269
self._localaddr = localaddr
@@ -310,7 +310,7 @@ def process_message(self, peer, mailfrom, rcpttos, data):
310310
"""
311311
raise UnimplementedError
312312

313-
313+
314314
class DebuggingServer(SMTPServer):
315315
# Do something with the gathered message
316316
def process_message(self, peer, mailfrom, rcpttos, data):
@@ -326,7 +326,7 @@ def process_message(self, peer, mailfrom, rcpttos, data):
326326
print '------------ END MESSAGE ------------'
327327

328328

329-
329+
330330
class PureProxy(SMTPServer):
331331
def process_message(self, peer, mailfrom, rcpttos, data):
332332
lines = data.split('\n')
@@ -367,7 +367,7 @@ def _deliver(self, mailfrom, rcpttos, data):
367367
return refused
368368

369369

370-
370+
371371
class MailmanProxy(PureProxy):
372372
def process_message(self, peer, mailfrom, rcpttos, data):
373373
from cStringIO import StringIO
@@ -405,7 +405,7 @@ def process_message(self, peer, mailfrom, rcpttos, data):
405405
# since we don't expect a large number of recipients.
406406
for rcpt, listname, command in listnames:
407407
rcpttos.remove(rcpt)
408-
# If there's any non-list destined recipients left,
408+
# If there's any non-list destined recipients left,
409409
print >> DEBUGSTREAM, 'forwarding recips:', ' '.join(rcpttos)
410410
if rcpttos:
411411
refused = self._deliver(mailfrom, rcpttos, data)
@@ -447,7 +447,7 @@ def process_message(self, peer, mailfrom, rcpttos, data):
447447
msg.Enqueue(mlist, torequest=1)
448448

449449

450-
450+
451451
class Options:
452452
setuid = 1
453453
classname = 'PureProxy'
@@ -502,7 +502,7 @@ def parseargs():
502502
return options
503503

504504

505-
505+
506506
if __name__ == '__main__':
507507
options = parseargs()
508508
# Become nobody

Lib/urllib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ def urlencode(query,doseq=0):
11031103
parameters in the output will match the order of parameters in the
11041104
input.
11051105
"""
1106-
1106+
11071107
if hasattr(query,"items"):
11081108
# mapping objects
11091109
query = query.items()

Lib/webbrowser.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
class Error(Exception):
77
pass
88

9-
_browsers = {} # Dictionary of available browser controllers
10-
_tryorder = [] # Preference order of available browsers
9+
_browsers = {} # Dictionary of available browser controllers
10+
_tryorder = [] # Preference order of available browsers
1111

1212
def register(name, klass, instance=None):
1313
"""Register a browser connector and, optionally, connection."""
@@ -24,7 +24,7 @@ def get(using=None):
2424
# User gave us a command line, don't mess with it.
2525
return browser
2626
else:
27-
# User gave us a browser name.
27+
# User gave us a browser name.
2828
command = _browsers[browser.lower()]
2929
if command[1] is None:
3030
return command[0]()
@@ -37,7 +37,7 @@ def get(using=None):
3737
def open(url, new=0, autoraise=1):
3838
get().open(url, new, autoraise)
3939

40-
def open_new(url): # Marked deprecated. May be removed in 2.1.
40+
def open_new(url): # Marked deprecated. May be removed in 2.1.
4141
get().open(url, 1)
4242

4343
#
@@ -47,7 +47,7 @@ def open_new(url): # Marked deprecated. May be removed in 2.1.
4747
# support the user's platform.
4848
#
4949

50-
#
50+
#
5151
# Platform support for Unix
5252
#
5353

@@ -78,7 +78,7 @@ def __init__(self, cmd):
7878
def open(self, url, new=0, autoraise=1):
7979
os.system(self.command % url)
8080

81-
def open_new(self, url): # Deprecated. May be removed in 2.1.
81+
def open_new(self, url): # Deprecated. May be removed in 2.1.
8282
self.open(url)
8383

8484
# Easy cases first -- register console browsers if we have them.

0 commit comments

Comments
 (0)