From bc170a2495b35f2b421b3ce04bcaef3f3ddd9eba Mon Sep 17 00:00:00 2001 From: Victor Mireyev Date: Fri, 19 Feb 2016 17:20:34 +0300 Subject: [PATCH] Fix typo in docstring --- scrapy/utils/misc.py | 4 ++-- scrapy/utils/reactor.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scrapy/utils/misc.py b/scrapy/utils/misc.py index 303a413d8..741d378d6 100644 --- a/scrapy/utils/misc.py +++ b/scrapy/utils/misc.py @@ -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. diff --git a/scrapy/utils/reactor.py b/scrapy/utils/reactor.py index a99063a61..83186a372 100644 --- a/scrapy/utils/reactor.py +++ b/scrapy/utils/reactor.py @@ -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):