From c4fc6b082630bb97999ac00cdbb44f002569209f Mon Sep 17 00:00:00 2001 From: Wenshuai Hou Date: Fri, 7 Apr 2023 15:07:57 -0400 Subject: [PATCH] fix doc, add a blank line to show code snippet correctly --- toolz/functoolz.py | 1 + 1 file changed, 1 insertion(+) diff --git a/toolz/functoolz.py b/toolz/functoolz.py index 2c75d3a4..7709f15b 100644 --- a/toolz/functoolz.py +++ b/toolz/functoolz.py @@ -757,6 +757,7 @@ class excepts(object): -1 Multiple exceptions and default except clause. + >>> excepting = excepts((IndexError, KeyError), lambda a: a[0]) >>> excepting([]) >>> excepting([1])