From 84f1dd618089351a7559cc86e1f7dbceec020960 Mon Sep 17 00:00:00 2001 From: Andriy Kornatskyy Date: Sat, 22 Aug 2020 20:16:39 +0300 Subject: [PATCH] Reformatted code per updates in black style. --- setup.py | 3 ++- src/wheezy/captcha/bezier.py | 7 +++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index 5c4ea88..e82a554 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,8 @@ README = open(os.path.join(os.path.dirname(__file__), "README.md")).read() VERSION = ( re.search( - r'__version__ = "(.+)"', open("src/wheezy/captcha/__init__.py").read(), + r'__version__ = "(.+)"', + open("src/wheezy/captcha/__init__.py").read(), ) .group(1) .strip() diff --git a/src/wheezy/captcha/bezier.py b/src/wheezy/captcha/bezier.py index 26d9358..8d68876 100644 --- a/src/wheezy/captcha/bezier.py +++ b/src/wheezy/captcha/bezier.py @@ -7,8 +7,7 @@ def pascal_row(n): - """ Returns n-th row of Pascal's triangle - """ + """Returns n-th row of Pascal's triangle""" result = [1] x, numerator = 1, n for denominator in range(1, n // 2 + 1): @@ -24,8 +23,8 @@ def pascal_row(n): def make_bezier(n): - """ Bezier curves: - http://en.wikipedia.org/wiki/B%C3%A9zier_curve#Generalization + """Bezier curves: + http://en.wikipedia.org/wiki/B%C3%A9zier_curve#Generalization """ try: return beziers[n]