From 371bf64a5f2e4c5e9236e12371ec897823738940 Mon Sep 17 00:00:00 2001 From: tomtao <1450026690@qq.com> Date: Mon, 31 Aug 2020 17:34:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=8D=E7=AE=80=E5=8C=96=E4=B8=80=E4=B8=AAde?= =?UTF-8?q?sc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python-retrying.spec | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/python-retrying.spec b/python-retrying.spec index 8aedbc2..f59bee1 100644 --- a/python-retrying.spec +++ b/python-retrying.spec @@ -21,17 +21,6 @@ BuildRequires: python3-setuptools %description -n python3-retrying Retrying is an Apache 2.0 licensed general-purpose retrying library, written in Python, to simplify the task of adding retry behavior to just about anything. -The simplest use case is retrying a flaky function whenever an Exception occurs -until a value is returned. - import random - from retrying import retry - @retry - def do_something_unreliable(): - if random.randint(0, 10) > 1: - raise IOError("Broken sauce, everything is hosed!!!111one") - else: - return "Awesome sauce!" - print do_something_unreliable() %package help Summary: Development documents and examples for retrying