mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Whitespace normalization.
This commit is contained in:
parent
003047a5f2
commit
1633a2e345
4 changed files with 5 additions and 5 deletions
|
@ -226,7 +226,7 @@ class IMAP4:
|
||||||
while bytes > 0:
|
while bytes > 0:
|
||||||
sent = self.sock.send(data)
|
sent = self.sock.send(data)
|
||||||
if sent == bytes:
|
if sent == bytes:
|
||||||
break # avoid copy
|
break # avoid copy
|
||||||
data = data[sent:]
|
data = data[sent:]
|
||||||
bytes = bytes - sent
|
bytes = bytes - sent
|
||||||
|
|
||||||
|
|
|
@ -362,7 +362,7 @@ else:
|
||||||
import UserDict
|
import UserDict
|
||||||
|
|
||||||
# Fake unsetenv() for Windows
|
# Fake unsetenv() for Windows
|
||||||
# not sure about os2 and dos here but
|
# not sure about os2 and dos here but
|
||||||
# I'm guessing they are the same.
|
# I'm guessing they are the same.
|
||||||
|
|
||||||
if name in ('os2', 'nt', 'dos'):
|
if name in ('os2', 'nt', 'dos'):
|
||||||
|
@ -421,7 +421,7 @@ else:
|
||||||
def __delitem__(self, key):
|
def __delitem__(self, key):
|
||||||
unsetenv(key)
|
unsetenv(key)
|
||||||
del self.data[key]
|
del self.data[key]
|
||||||
|
|
||||||
|
|
||||||
environ = _Environ(environ)
|
environ = _Environ(environ)
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ only the following are defined:
|
||||||
|
|
||||||
curses - Tests that use curses and will modify the terminal's
|
curses - Tests that use curses and will modify the terminal's
|
||||||
state and output modes.
|
state and output modes.
|
||||||
|
|
||||||
largefile - It is okay to run some test that may create huge files. These
|
largefile - It is okay to run some test that may create huge files. These
|
||||||
tests can take a long time and may consume >2GB of disk space
|
tests can take a long time and may consume >2GB of disk space
|
||||||
temporarily.
|
temporarily.
|
||||||
|
|
|
@ -39,7 +39,7 @@ class MimeTypesTestCase(unittest.TestCase):
|
||||||
".pyunit")
|
".pyunit")
|
||||||
|
|
||||||
def test_non_standard_types(self):
|
def test_non_standard_types(self):
|
||||||
# First try strict
|
# First try strict
|
||||||
self.assertEqual(self.db.guess_type('foo.xul', strict=1),
|
self.assertEqual(self.db.guess_type('foo.xul', strict=1),
|
||||||
(None, None))
|
(None, None))
|
||||||
self.assertEqual(self.db.guess_extension('image/jpg', strict=1),
|
self.assertEqual(self.db.guess_extension('image/jpg', strict=1),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue