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. """