From b26dbc83cbfd1b35903920b6bdaaa7f93152e2d9 Mon Sep 17 00:00:00 2001 From: Romain Dorgueil Date: Sat, 30 Sep 2017 11:50:34 +0200 Subject: [PATCH] minor cleanups --- bonobo/nodes/throttle.py | 3 --- bonobo/util/graphviz.py | 8 -------- 2 files changed, 11 deletions(-) delete mode 100644 bonobo/util/graphviz.py diff --git a/bonobo/nodes/throttle.py b/bonobo/nodes/throttle.py index 2f08cd3..58f5c09 100644 --- a/bonobo/nodes/throttle.py +++ b/bonobo/nodes/throttle.py @@ -41,15 +41,12 @@ class RateLimited(Configurable): @ContextProcessor def bucket(self, context): - print(context) bucket = RateLimitBucket(self.initial, self.amount, self.period) bucket.start() - print(bucket) yield bucket bucket.stop() bucket.join() def call(self, bucket, *args, **kwargs): - print(bucket, args, kwargs) bucket.wait() return self.handler(*args, **kwargs) diff --git a/bonobo/util/graphviz.py b/bonobo/util/graphviz.py deleted file mode 100644 index 588e374..0000000 --- a/bonobo/util/graphviz.py +++ /dev/null @@ -1,8 +0,0 @@ -def render_as_dot(graph): - """ - - :param bonobo.Graph graph: - :return: str - """ - - pass