简化 description help

This commit is contained in:
tomtao 2020-08-31 17:47:04 +08:00 committed by Gitee
parent 371bf64a5f
commit 8630b1abf2

View File

@ -28,17 +28,6 @@ Provides: python3-retrying-doc
%description help
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()
%prep
%autosetup -n retrying-1.3.3