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

Skip to content

Commit 0e9980f

Browse files
committed
Whitespace normalization.
1 parent 2ee8099 commit 0e9980f

7 files changed

Lines changed: 26 additions & 26 deletions

File tree

Lib/compiler/ast.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ def __init__(self, decorators, name, argnames, defaults, flags, doc, code, linen
553553
self.varargs = 1
554554
if flags & CO_VARKEYWORDS:
555555
self.kwargs = 1
556-
556+
557557

558558

559559
def getChildren(self):
@@ -584,7 +584,7 @@ def __init__(self, code, lineno=None):
584584
self.lineno = lineno
585585
self.argnames = ['[outmost-iterable]']
586586
self.varargs = self.kwargs = None
587-
587+
588588

589589

590590
def getChildren(self):
@@ -763,7 +763,7 @@ def __init__(self, argnames, defaults, flags, code, lineno=None):
763763
self.varargs = 1
764764
if flags & CO_VARKEYWORDS:
765765
self.kwargs = 1
766-
766+
767767

768768

769769
def getChildren(self):
@@ -1313,4 +1313,4 @@ def __repr__(self):
13131313

13141314
for name, obj in globals().items():
13151315
if isinstance(obj, type) and issubclass(obj, Node):
1316-
nodes[name.lower()] = obj
1316+
nodes[name.lower()] = obj

Lib/compiler/transformer.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def extractLineNo(ast):
7979
lineno = extractLineNo(child)
8080
if lineno is not None:
8181
return lineno
82-
82+
8383
def Node(*args):
8484
kind = args[0]
8585
if nodes.has_key(kind):
@@ -127,7 +127,7 @@ def transform(self, tree):
127127
def parsesuite(self, text):
128128
"""Return a modified parse tree for the given suite text."""
129129
return self.transform(parser.suite(text))
130-
130+
131131
def parseexpr(self, text):
132132
"""Return a modified parse tree for the given expression text."""
133133
return self.transform(parser.expr(text))
@@ -426,7 +426,7 @@ def import_stmt(self, nodelist):
426426

427427
def import_name(self, nodelist):
428428
# import_name: 'import' dotted_as_names
429-
return Import(self.com_dotted_as_names(nodelist[1]),
429+
return Import(self.com_dotted_as_names(nodelist[1]),
430430
lineno=nodelist[0][2])
431431

432432
def import_from(self, nodelist):
@@ -514,7 +514,7 @@ def for_stmt(self, nodelist):
514514
else:
515515
elseNode = None
516516

517-
return For(assignNode, listNode, bodyNode, elseNode,
517+
return For(assignNode, listNode, bodyNode, elseNode,
518518
lineno=nodelist[0][2])
519519

520520
def try_stmt(self, nodelist):
@@ -887,7 +887,7 @@ def com_bases(self, node):
887887
def com_try_finally(self, nodelist):
888888
# try_fin_stmt: "try" ":" suite "finally" ":" suite
889889
return TryFinally(self.com_node(nodelist[2]),
890-
self.com_node(nodelist[5]),
890+
self.com_node(nodelist[5]),
891891
lineno=nodelist[0][2])
892892

893893
def com_try_except(self, nodelist):
@@ -1226,7 +1226,7 @@ def com_subscriptlist(self, primary, nodelist, assigning):
12261226
subscripts = []
12271227
for i in range(1, len(nodelist), 2):
12281228
subscripts.append(self.com_subscript(nodelist[i]))
1229-
return Subscript(primary, assigning, subscripts,
1229+
return Subscript(primary, assigning, subscripts,
12301230
lineno=extractLineNo(nodelist))
12311231

12321232
def com_subscript(self, node):

Lib/distutils/command/bdist_rpm.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,24 +97,24 @@ class bdist_rpm (Command):
9797
"RPM 2 compatibility mode"),
9898

9999
# Add the hooks necessary for specifying custom scripts
100-
('prep-script=', None,
100+
('prep-script=', None,
101101
"Specify a script for the PREP phase of RPM building"),
102-
('build-script=', None,
102+
('build-script=', None,
103103
"Specify a script for the BUILD phase of RPM building"),
104104

105-
('pre-install=', None,
105+
('pre-install=', None,
106106
"Specify a script for the pre-INSTALL phase of RPM building"),
107-
('install-script=', None,
107+
('install-script=', None,
108108
"Specify a script for the INSTALL phase of RPM building"),
109-
('post-install=', None,
109+
('post-install=', None,
110110
"Specify a script for the post-INSTALL phase of RPM building"),
111111

112-
('pre-uninstall=', None,
112+
('pre-uninstall=', None,
113113
"Specify a script for the pre-UNINSTALL phase of RPM building"),
114-
('post-uninstall=', None,
114+
('post-uninstall=', None,
115115
"Specify a script for the post-UNINSTALL phase of RPM building"),
116116

117-
('clean-script=', None,
117+
('clean-script=', None,
118118
"Specify a script for the CLEAN phase of RPM building"),
119119

120120
('verify-script=', None,

Lib/test/test_compiler.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ def check_lineno(self, node):
5050

5151
def _check_lineno(self, node):
5252
if not node.__class__ in NOLINENO:
53-
self.assert_(isinstance(node.lineno, int),
53+
self.assert_(isinstance(node.lineno, int),
5454
"lineno=%s on %s" % (node.lineno, node.__class__))
55-
self.assert_(node.lineno > 0,
55+
self.assert_(node.lineno > 0,
5656
"lineno=%s on %s" % (node.lineno, node.__class__))
5757
for child in node.getChildNodes():
5858
self.check_lineno(child)
@@ -84,12 +84,12 @@ class Toto:
8484
yo = 3
8585
else:
8686
yo += 3
87-
87+
8888
try:
8989
a += b
9090
finally:
9191
b = 0
92-
92+
9393
###############################################################################
9494

9595
def test_main():

Lib/test/test_re.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def test_sub_template_numeric_escape(self):
104104

105105
self.assertEqual(re.sub('x', r'\400', 'x'), '\0')
106106
self.assertEqual(re.sub('x', r'\777', 'x'), '\377')
107-
107+
108108
self.assertRaises(re.error, re.sub, 'x', r'\1', 'x')
109109
self.assertRaises(re.error, re.sub, 'x', r'\8', 'x')
110110
self.assertRaises(re.error, re.sub, 'x', r'\9', 'x')

Tools/compiler/astgen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,4 +283,4 @@ def __repr__(self):
283283
### EPILOGUE
284284
for name, obj in globals().items():
285285
if isinstance(obj, type) and issubclass(obj, Node):
286-
nodes[name.lower()] = obj
286+
nodes[name.lower()] = obj

Tools/msi/msi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def add_ui(db):
320320
end if
321321
if (ext_new=2 or tcl_new=2) and regtcl_old<>2 then
322322
Session.ComponentRequestState("REGISTRY.tcl")=2
323-
end if
323+
end if
324324
End Function
325325
""")
326326
# To add debug messages into scripts, the following fragment can be used
@@ -329,7 +329,7 @@ def add_ui(db):
329329
# Session.message &H04000000, objRec
330330
add_data(db, "Binary", [("Script", msilib.Binary("inst.vbs"))])
331331
# See "Custom Action Type 6"
332-
add_data(db, "CustomAction",
332+
add_data(db, "CustomAction",
333333
[("CheckDir", 6, "Script", "CheckDir"),
334334
("UpdateEditIDLE", 6, "Script", "UpdateEditIDLE")])
335335
os.unlink("inst.vbs")

0 commit comments

Comments
 (0)