summaryrefslogtreecommitdiff
path: root/crocoite/task.py
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2018-06-20 11:39:40 +0200
committerLars-Dominik Braun <lars@6xq.net>2018-06-20 11:39:58 +0200
commit4302c6735d2985ed76e4a2d4a3319c7ef2c7ca84 (patch)
treea7b11932eef7d7325f5e561271c04b3e8bc81088 /crocoite/task.py
parent7730e0d64ec895091a0dd7eb0e3c6ce2ed02d981 (diff)
downloadcrocoite-4302c6735d2985ed76e4a2d4a3319c7ef2c7ca84.tar.gz
crocoite-4302c6735d2985ed76e4a2d4a3319c7ef2c7ca84.tar.bz2
crocoite-4302c6735d2985ed76e4a2d4a3319c7ef2c7ca84.zip
Add __slots__ to classes
This is mainly a quality of life change
Diffstat (limited to 'crocoite/task.py')
-rw-r--r--crocoite/task.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/crocoite/task.py b/crocoite/task.py
index 48fe5d8..9054627 100644
--- a/crocoite/task.py
+++ b/crocoite/task.py
@@ -111,6 +111,8 @@ class IntegerDict (UserDict):
class DistributedRecursiveController (RecursiveController):
""" Distributed, recursive controller using celery """
+ __slots__ = ('concurrency', 'stats')
+
def __init__ (self, url, service=ChromeService (), behavior=behavior.available, \
logger=logging.getLogger(__name__), settings=defaultSettings,
recursionPolicy=DepthLimit (0), concurrency=1):