From 8f51f4c0c307fb4bb1e3bdee7345780efb0372ef Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Wed, 21 Jul 2021 23:11:38 +1000 Subject: [PATCH 1/3] docs: Fix a few typos There are small typos in: - effect/_base.py - effect/fold.py - effect/test_base.py - effect/test_parallel_performers.py Fixes: - Should read `synchronously` rather than `synchronusly`. - Should read `successful` rather than `succesful`. - Should read `success` rather than `succes`. - Should read `propagate` rather than `propogate`. - Should read `performance` rather than `peformance`. --- effect/_base.py | 2 +- effect/fold.py | 2 +- effect/test_base.py | 4 ++-- effect/test_parallel_performers.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/effect/_base.py b/effect/_base.py index 6a4f145..efaef5c 100644 --- a/effect/_base.py +++ b/effect/_base.py @@ -163,7 +163,7 @@ def catch(exc_type, callable): lambda exc: "got an error!")) If any exception other than a ``SpecificException`` is thrown, it will be - ignored by this handler and propogate further down the chain of callbacks. + ignored by this handler and propagate further down the chain of callbacks. """ def catcher(error): diff --git a/effect/fold.py b/effect/fold.py index 65aa6ae..ec92e53 100644 --- a/effect/fold.py +++ b/effect/fold.py @@ -73,7 +73,7 @@ def sequence(effects): fails. """ # Could be: folder = lambda acc, el: acc + [el] - # But, for peformance: + # But, for performance: result = [] def folder(acc, el): diff --git a/effect/test_base.py b/effect/test_base.py index 68acc15..3b1d9c4 100644 --- a/effect/test_base.py +++ b/effect/test_base.py @@ -107,7 +107,7 @@ def test_performer_raises(self): def test_success_propagates_effect_exception(self): """ - If an succes callback is specified, but a exception result occurs, + If an success callback is specified, but a exception result occurs, the exception is passed to the next callback. """ calls = [] @@ -124,7 +124,7 @@ def test_success_propagates_effect_exception(self): def test_error_propagates_effect_result(self): """ - If an error callback is specified, but a succesful result occurs, + If an error callback is specified, but a successful result occurs, the success is passed to the next callback. """ calls = [] diff --git a/effect/test_parallel_performers.py b/effect/test_parallel_performers.py index e40129d..05b2dbf 100644 --- a/effect/test_parallel_performers.py +++ b/effect/test_parallel_performers.py @@ -21,7 +21,7 @@ class ParallelPerformerTestsMixin(object): def test_empty(self): """ When given an empty list of effects, ``perform_parallel_async`` returns - an empty list synchronusly. + an empty list synchronously. """ result = sync_perform(self.dispatcher, parallel([])) self.assertEqual(result, []) From 9c6ae147f5ea14ab6f2e906231d5fb9664de5904 Mon Sep 17 00:00:00 2001 From: Christopher Armstrong <227068+radix@users.noreply.github.com> Date: Sun, 26 Jun 2022 11:39:59 -0500 Subject: [PATCH 2/3] Remove Rackspace thanks from README --- README.rst | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/README.rst b/README.rst index 6b4f244..05ce89c 100644 --- a/README.rst +++ b/README.rst @@ -105,16 +105,6 @@ Some talks have been given about Effect. .. _`Functionalish Programming in Python with Effect`: https://www.youtube.com/watch?v=fM5d_2BS6FY .. _`Kiwi PyCon`: https://nzpug.org/ - -Thanks -====== - -Thanks to Rackspace for allowing me to work on this project, and having an -*excellent* `open source employee contribution policy`_ - -.. _`open source employee contribution policy`: https://www.rackspace.com/blog/rackspaces-policy-on-contributing-to-open-source/ - - Authors ======= From cd21859ad2babebcbf12fa372aef34b9cd25a10e Mon Sep 17 00:00:00 2001 From: Christopher Armstrong <227068+radix@users.noreply.github.com> Date: Sun, 26 Jun 2022 11:45:10 -0500 Subject: [PATCH 3/3] Freenode is extremely dead --- README.rst | 6 ------ 1 file changed, 6 deletions(-) diff --git a/README.rst b/README.rst index 05ce89c..d485daf 100644 --- a/README.rst +++ b/README.rst @@ -124,12 +124,6 @@ but now has contributions from the following people: .. _`Tom Prince`: https://github.com/tomprince -IRC -=== - -There is a ``#python-effect`` IRC channel on irc.freenode.net. - - See Also ========