Skip to content

Commit 4e0e1b6

Browse files
committed
Whitespace normalization.
1 parent b7e898a commit 4e0e1b6

32 files changed

+144
-166
lines changed

Lib/asyncore.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def accept(self):
304304
if why[0] == EWOULDBLOCK:
305305
pass
306306
else:
307-
raise
307+
raise
308308

309309
def send(self, data):
310310
try:
@@ -314,7 +314,7 @@ def send(self, data):
314314
if why[0] == EWOULDBLOCK:
315315
return 0
316316
else:
317-
raise
317+
raise
318318
return 0
319319

320320
def recv(self, buffer_size):
@@ -333,7 +333,7 @@ def recv(self, buffer_size):
333333
self.handle_close()
334334
return ''
335335
else:
336-
raise
336+
raise
337337

338338
def close(self):
339339
self.del_channel()
@@ -529,4 +529,3 @@ def set_file(self, fd):
529529
self._fileno = fd
530530
self.socket = file_wrapper(fd)
531531
self.add_channel()
532-

Lib/cmd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def cmdloop(self, intro=None):
149149
readline.set_completer(self.old_completer)
150150
except ImportError:
151151
pass
152-
152+
153153

154154
def precmd(self, line):
155155
"""Hook method executed just before the command line is
@@ -172,7 +172,7 @@ def postloop(self):
172172
173173
"""
174174
pass
175-
175+
176176
def parseline(self, line):
177177
"""Parse the line into a command name and a string containing
178178
the arguments. Returns a tuple containing (command, args, line).

Lib/compiler/pycodegen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ def visitGenExprInner(self, node):
671671
def visitGenExprFor(self, node):
672672
start = self.newBlock()
673673
anchor = self.newBlock()
674-
674+
675675
if node.is_outmost:
676676
self.loadName('[outmost-iterable]')
677677
else:

Lib/compiler/symbols.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,13 +260,13 @@ def visitGenExprFor(self, node, scope):
260260

261261
def visitGenExprIf(self, node, scope):
262262
self.visit(node.test, scope)
263-
263+
264264
def visitLambda(self, node, parent, assign=0):
265265
# Lambda is an expression, so it could appear in an expression
266266
# context where assign is passed. The transformer should catch
267267
# any code that has a lambda on the left-hand side.
268-
assert not assign
269-
268+
assert not assign
269+
270270
for n in node.defaults:
271271
self.visit(n, parent)
272272
scope = LambdaScope(self.module, self.klass)

Lib/decimal.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -509,10 +509,10 @@ def __init__(self, value="0", context=None):
509509
return
510510

511511
if isinstance(value, Decimal):
512-
self._exp = value._exp
513-
self._sign = value._sign
514-
self._int = value._int
515-
return
512+
self._exp = value._exp
513+
self._sign = value._sign
514+
self._int = value._int
515+
return
516516

517517
raise TypeError("Can't convert %r" % value)
518518

@@ -2817,7 +2817,7 @@ def subtract(self, alist):
28172817
carry = 1
28182818
selfint[x] += 10
28192819
else:
2820-
carry = 0
2820+
carry = 0
28212821
if carry:
28222822
selfint[x+1] -= 1
28232823
last = len(selfint)-1

Lib/doctest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def _test():
205205
docstring, which will preserve your backslahses exactly as you type
206206
them:
207207
208-
>>> def f(x):
208+
>>> def f(x):
209209
... r'''Backslashes in a raw docstring: m\n'''
210210
>>> print f.__doc__
211211
Backslashes in a raw docstring: m\n
@@ -215,11 +215,11 @@ def _test():
215215
Alternatively, you can double each backslash in the doctest version
216216
(and not use a raw string):
217217
218-
>>> def f(x):
218+
>>> def f(x):
219219
... '''Backslashes in a raw docstring: m\\n'''
220220
>>> print f.__doc__
221221
Backslashes in a raw docstring: m\n
222-
222+
223223
The starting column doesn't matter:
224224
225225
>>> assert "Easy!"

Lib/encodings/big5.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,3 @@ def __init__(self, stream, errors='strict'):
3131

3232
def getregentry():
3333
return (Codec().encode,Codec().decode,StreamReader,StreamWriter)
34-

Lib/encodings/cp932.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,3 @@ def __init__(self, stream, errors='strict'):
3131

3232
def getregentry():
3333
return (Codec().encode,Codec().decode,StreamReader,StreamWriter)
34-

Lib/encodings/cp949.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,3 @@ def __init__(self, stream, errors='strict'):
3131

3232
def getregentry():
3333
return (Codec().encode,Codec().decode,StreamReader,StreamWriter)
34-

Lib/encodings/cp950.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,3 @@ def __init__(self, stream, errors='strict'):
3131

3232
def getregentry():
3333
return (Codec().encode,Codec().decode,StreamReader,StreamWriter)
34-

0 commit comments

Comments
 (0)