Merge pull request #1795 from AmbientLighter/patch-1

Fix typos in docstrings
This commit is contained in:
Paul Tremberth 2016-02-19 16:44:20 +01:00
commit 2969e34e82
2 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ def arg_to_iter(arg):
def load_object(path):
"""Load an object given its absolute object path, and return it.
object can be a class, function, variable o instance.
object can be a class, function, variable or an instance.
path ie: 'scrapy.downloadermiddlewares.redirect.RedirectMiddleware'
"""
@ -52,7 +52,7 @@ def load_object(path):
def walk_modules(path):
"""Loads a module and all its submodules from a the given module path and
"""Loads a module and all its submodules from the given module path and
returns them. If *any* module throws an exception while importing, that
exception is thrown back.

View File

@ -19,7 +19,7 @@ def listen_tcp(portrange, host, factory):
class CallLaterOnce(object):
"""Schedule a function to be called in the next reactor loop, but only if
it hasn't been already scheduled since the last time it run.
it hasn't been already scheduled since the last time it ran.
"""
def __init__(self, func, *a, **kw):