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

Skip to content

Commit 6578dc9

Browse files
committed
Whitespace normalization.
1 parent 75bfd05 commit 6578dc9

7 files changed

Lines changed: 10 additions & 11 deletions

File tree

Lib/email/_compat21.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def _floordiv(i, j):
3131

3232

3333
def _isstring(obj):
34-
return isinstance(obj, StringType) or isinstance(obj, UnicodeType)
34+
return isinstance(obj, StringType) or isinstance(obj, UnicodeType)
3535

3636

3737

Lib/encodings/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def normalize_encoding(encoding):
4646
characters except the dot used for Python package names are
4747
collapsed and replaced with a single underscore, e.g. ' -;#'
4848
becomes '_'.
49-
49+
5050
"""
5151
return '_'.join(_norm_encoding_RE.split(encoding))
5252

Lib/test/test_datetime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2258,7 +2258,7 @@ def test_tzinfo_isoformat(self):
22582258
cls = self.theclass
22592259
datestr = '0001-02-03'
22602260
for ofs in None, zero, plus, minus, unknown:
2261-
for us in 0, 987001:
2261+
for us in 0, 987001:
22622262
d = cls(1, 2, 3, 4, 5, 59, us, tzinfo=ofs)
22632263
timestr = '04:05:59' + (us and '.987001' or '')
22642264
ofsstr = ofs is not None and d.tzname() or ''

Lib/test/test_descr.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3447,7 +3447,7 @@ def __getattribute__(self, attr):
34473447
if attr == 'a':
34483448
return 2
34493449
else:
3450-
return super(C2, self).__getattribute__(attr)
3450+
return super(C2, self).__getattribute__(attr)
34513451
def meth(self):
34523452
return 1
34533453
class D(C):
@@ -3576,7 +3576,7 @@ class G(D):
35763576
# Immediate subclasses have their mro's adjusted in alphabetical
35773577
# order, so E's will get adjusted before adjusting F's fails. We
35783578
# check here that E's gets restored.
3579-
3579+
35803580
E_mro_before = E.__mro__
35813581
D_mro_before = D.__mro__
35823582

@@ -3610,20 +3610,20 @@ class E(C, D):
36103610
pass
36113611
else:
36123612
raise TestFailed, "didn't catch MRO conflict"
3613-
3613+
36143614
def mutable_names():
36153615
class C(object):
36163616
pass
36173617

36183618
# C.__module__ could be 'test_descr' or '__main__'
36193619
mod = C.__module__
3620-
3620+
36213621
C.__name__ = 'D'
36223622
vereq((C.__module__, C.__name__), (mod, 'D'))
36233623

36243624
C.__name__ = 'D.E'
36253625
vereq((C.__module__, C.__name__), (mod, 'D.E'))
3626-
3626+
36273627

36283628
def test_main():
36293629
do_this_first()

Lib/test/test_macpath.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,3 @@ def test_main():
6161

6262
if __name__ == "__main__":
6363
test_main()
64-

Lib/test/test_ntpath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def tester(fn, wantResult):
1515
print " returned: " + str(gotResult)
1616
print ""
1717
errors = errors + 1
18-
18+
1919
tester('ntpath.splitext("foo.ext")', ('foo', '.ext'))
2020
tester('ntpath.splitext("/foo/foo.ext")', ('/foo/foo', '.ext'))
2121
tester('ntpath.splitext(".ext")', ('', '.ext'))

Lib/test/test_shelve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class TestCase(unittest.TestCase):
88

99
fn = "shelftemp.db"
10-
10+
1111
def test_ascii_file_shelf(self):
1212
try:
1313
s = shelve.open(self.fn, binary=False)

0 commit comments

Comments
 (0)