mirror of
https://github.com/django/django.git
synced 2025-10-26 23:26:08 +00:00
Fixed E125 pep8 warnings
This commit is contained in:
committed by
Tim Graham
parent
d1df395f3a
commit
7477a4ffde
@@ -238,7 +238,7 @@ def urlize(text, trim_url_limit=None, nofollow=False, autoescape=False):
|
||||
lead = lead + opening
|
||||
# Keep parentheses at the end only if they're balanced.
|
||||
if (middle.endswith(closing)
|
||||
and middle.count(closing) == middle.count(opening) + 1):
|
||||
and middle.count(closing) == middle.count(opening) + 1):
|
||||
middle = middle[:-len(closing)]
|
||||
trail = closing + trail
|
||||
|
||||
|
||||
Reference in New Issue
Block a user