Whitespace normalization. · python/cpython@58eb11c · GitHub
Skip to content

Commit 58eb11c

Browse files
committed
Whitespace normalization.
1 parent 5303a96 commit 58eb11c

34 files changed

Lines changed: 69 additions & 76 deletions

Lib/StringIO.py

Lines changed: 1 addition & 1 deletion

Lib/_strptime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ def strptime(data_string, format="%a %b %d %H:%M:%S %Y"):
365365
# be able to tell what timezone has daylight savings
366366
if time.tzname[0] == time.tzname[1] and \
367367
time.daylight:
368-
break
368+
break
369369
else:
370370
tz = value
371371
break

Lib/distutils/command/build_ext.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ def finalize_options (self):
171171
# Append the source distribution include and library directories,
172172
# this allows distutils on windows to work in the source tree
173173
self.include_dirs.append(os.path.join(sys.exec_prefix, 'PC'))
174-
self.library_dirs.append(os.path.join(sys.exec_prefix, 'PCBuild'))
174+
self.library_dirs.append(os.path.join(sys.exec_prefix, 'PC', 'VC6'))
175+
#self.library_dirs.append(os.path.join(sys.exec_prefix, 'PCBuild'))
175176

176177
# OS/2 (EMX) doesn't support Debug vs Release builds, but has the
177178
# import libraries in its "Config" subdirectory

Lib/httplib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ def putrequest(self, method, url, skip_host=0, skip_accept_encoding=0):
610610
if self.__response and self.__response.isclosed():
611611
self.__response = None
612612

613-
613+
614614
# in certain cases, we cannot issue another request on this connection.
615615
# this occurs when:
616616
# 1) we are in the process of sending a request. (_CS_REQ_STARTED)
@@ -731,7 +731,7 @@ def _send_request(self, method, url, body, headers):
731731
# If headers already contains a host header, then define the
732732
# optional skip_host argument to putrequest(). The check is
733733
# harder because field names are case insensitive.
734-
if 'host' in [k.lower() for k in headers]:
734+
if 'host' in [k.lower() for k in headers]:
735735
self.putrequest(method, url, skip_host=1)
736736
else:
737737
self.putrequest(method, url)

Lib/random.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def randrange(self, start, stop=None, step=1, int=int, default=None,
177177
# compatibility).
178178

179179
if width >= maxwidth:
180-
return int(istart + self._randbelow(width))
180+
return int(istart + self._randbelow(width))
181181
return int(istart + int(self.random()*width))
182182
if step == 1:
183183
raise ValueError, "empty range for randrange() (%d,%d, %d)" % (istart, istop, width)

Lib/sre_parse.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,9 +365,9 @@ def _parse_sub(source, state, nested=1):
365365
return subpattern
366366

367367
def _parse_sub_cond(source, state, condgroup):
368-
item_yes = _parse(source, state)
368+
item_yes = _parse(source, state)
369369
if source.match("|"):
370-
item_no = _parse(source, state)
370+
item_no = _parse(source, state)
371371
if source.match("|"):
372372
raise error, "conditional backref with more than two branches"
373373
else:

Lib/test/pystone.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,4 +264,3 @@ def error(msg):
264264
else:
265265
loops = LOOPS
266266
main(loops)
267-

Lib/test/test_applesingle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def test_applesingle(self):
5555
applesingle.decode(test_support.TESTFN, TESTFN2)
5656
self.compareData(False, dataforkdata)
5757
self.compareData(True, resourceforkdata)
58-
58+
5959
def test_applesingle_resonly(self):
6060
try:
6161
os.unlink(TESTFN2)

Lib/test/test_codeccallbacks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ def test_bug828737(self):
697697
ord(">"): u">",
698698
ord('"'): u""",
699699
}
700-
700+
701701
for n in (1, 10, 100, 1000):
702702
text = u'abc<def>ghi'*n
703703
text.translate(charmap)

Lib/test/test_codecencodings_cn.py

Lines changed: 2 additions & 3 deletions

0 commit comments

Comments
 (0)