Skip to content

Commit

Permalink
Reformatted code per updates in black style.
Browse files Browse the repository at this point in the history
  • Loading branch information
akornatskyy committed Aug 29, 2020
1 parent fa17600 commit 84f1dd6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
7 changes: 3 additions & 4 deletions src/wheezy/captcha/bezier.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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]
Expand Down

0 comments on commit 84f1dd6

Please sign in to comment.