From 30ccc65ef1c5b29033151d319974c1c2268c0e00 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Sun, 1 Mar 2020 07:13:51 +1100 Subject: [PATCH] Fix simple typo: visite -> visit Closes #941 --- pyspider/libs/counter.py | 2 +- pyspider/libs/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyspider/libs/counter.py b/pyspider/libs/counter.py index 88ff60eeb..6380608ab 100644 --- a/pyspider/libs/counter.py +++ b/pyspider/libs/counter.py @@ -330,7 +330,7 @@ class CounterManager(DictMixin): """ A dict like counter manager. - When using a tuple as event key, say: ('foo', 'bar'), You can visite counter + When using a tuple as event key, say: ('foo', 'bar'), You can visit counter with manager['foo']['bar']. Or get all counters which first element is 'foo' by manager['foo']. diff --git a/pyspider/libs/utils.py b/pyspider/libs/utils.py index 1c653b17d..2acc4229b 100644 --- a/pyspider/libs/utils.py +++ b/pyspider/libs/utils.py @@ -344,7 +344,7 @@ def __get__(self, instance, owner): class ObjectDict(dict): """ - Object like dict, every dict[key] can visite by dict.key + Object like dict, every dict[key] can visit by dict.key If dict[key] is `Get`, calculate it's value. """