Fix typos detected by toolkit misspellings

* pip install misspellings
* git ls-files | grep -v locale | misspellings -f -

Closes GH #194
This commit is contained in:
ChangBo Guo(gcb)
2015-01-24 10:22:32 +08:00
committed by Jakub Stasiak
parent a2cd9be0c2
commit 3866cd88e4
8 changed files with 9 additions and 9 deletions

View File

@@ -109,7 +109,7 @@ class Event(object):
waited for result waited for result
Returns immediately if the event has already Returns immediately if the event has already
occured. occurred.
>>> evt.wait() >>> evt.wait()
'result' 'result'

View File

@@ -342,7 +342,7 @@ def wrap_socket(sock, *a, **kw):
if hasattr(__ssl, 'sslwrap_simple'): if hasattr(__ssl, 'sslwrap_simple'):
def sslwrap_simple(sock, keyfile=None, certfile=None): def sslwrap_simple(sock, keyfile=None, certfile=None):
"""A replacement for the old socket.ssl function. Designed """A replacement for the old socket.ssl function. Designed
for compability with Python 2.5 and earlier. Will disappear in for compatibility with Python 2.5 and earlier. Will disappear in
Python 3.0.""" Python 3.0."""
ssl_sock = GreenSSLSocket(sock, keyfile=keyfile, certfile=certfile, ssl_sock = GreenSSLSocket(sock, keyfile=keyfile, certfile=certfile,
server_side=False, server_side=False,

View File

@@ -204,7 +204,7 @@ class Socket(_Socket):
* send * send
* recv * recv
* getsockopt * getsockopt
To ensure that the ``zmq.NOBLOCK`` flag is set and that sending or recieving To ensure that the ``zmq.NOBLOCK`` flag is set and that sending or receiving
is deferred to the hub (using :func:`eventlet.hubs.trampoline`) if a is deferred to the hub (using :func:`eventlet.hubs.trampoline`) if a
``zmq.EAGAIN`` (retry) error is raised ``zmq.EAGAIN`` (retry) error is raised

View File

@@ -268,7 +268,7 @@ def get_database_auth():
try: try:
auth_utf8 = json.load(open(f)) auth_utf8 = json.load(open(f))
# Have to convert unicode objects to str objects because # Have to convert unicode objects to str objects because
# mysqldb is dum. Using a doubly-nested list comprehension # mysqldb is dumb. Using a doubly-nested list comprehension
# because we know that the structure is a two-level dict. # because we know that the structure is a two-level dict.
return dict( return dict(
[(str(modname), dict( [(str(modname), dict(

View File

@@ -202,7 +202,7 @@ class GreenPool(tests.LimitedTestCase):
timer = eventlet.Timeout(0, RuntimeError()) timer = eventlet.Timeout(0, RuntimeError())
try: try:
tp.get() tp.get()
self.fail("Shouldn't have recieved anything from the pool") self.fail("Shouldn't have received anything from the pool")
except RuntimeError: except RuntimeError:
return 'timed out' return 'timed out'
else: else:

View File

@@ -330,7 +330,7 @@ class TestDeadRunLoop(LimitedTestCase):
with eventlet.Timeout(0.5, self.CustomException()): with eventlet.Timeout(0.5, self.CustomException()):
# we now switch to the hub, there should be no existing timers # we now switch to the hub, there should be no existing timers
# that switch back to this greenlet and so this hub.switch() # that switch back to this greenlet and so this hub.switch()
# call should block indefinately. # call should block indefinitely.
self.assertRaises(self.CustomException, hub.switch) self.assertRaises(self.CustomException, hub.switch)
def test_parent(self): def test_parent(self):
@@ -352,7 +352,7 @@ class TestDeadRunLoop(LimitedTestCase):
# we now switch to the hub which will allow # we now switch to the hub which will allow
# completion of dummyproc. # completion of dummyproc.
# this should return execution back to the runloop and not # this should return execution back to the runloop and not
# this greenlet so that hub.switch() would block indefinately. # this greenlet so that hub.switch() would block indefinitely.
self.assertRaises(self.CustomException, hub.switch) self.assertRaises(self.CustomException, hub.switch)
assert g.dead # sanity check that dummyproc has completed assert g.dead # sanity check that dummyproc has completed

View File

@@ -1172,7 +1172,7 @@ class _patch(object):
@wraps(func) @wraps(func)
def patched(*args, **keywargs): def patched(*args, **keywargs):
# don't use a with here (backwards compatability with Python 2.4) # don't use a with here (backwards compatibility with Python 2.4)
extra_args = [] extra_args = []
entered_patchers = [] entered_patchers = []

View File

@@ -19,7 +19,7 @@ def test_subprocess_wait():
try: try:
p.wait(timeout=0.1) p.wait(timeout=0.1)
except subprocess.TimeoutExpired as e: except subprocess.TimeoutExpired as e:
str(e) # make sure it doesnt throw str(e) # make sure it doesn't throw
assert e.cmd == cmd assert e.cmd == cmd
assert e.timeout == 0.1 assert e.timeout == 0.1
ok = True ok = True