1
0
mirror of https://github.com/django/django.git synced 2025-10-26 15:16:09 +00:00

Fixed a number of flake8 errors -- particularly around unused imports and local variables

This commit is contained in:
Alex Gaynor
2013-09-06 21:56:40 -07:00
parent a9589dd280
commit 2530735d2d
13 changed files with 8 additions and 21 deletions

View File

@@ -210,7 +210,6 @@ def urlize(text, trim_url_limit=None, nofollow=False, autoescape=False):
safe_input = isinstance(text, SafeData)
words = word_split_re.split(force_text(text))
for i, word in enumerate(words):
match = None
if '.' in word or '@' in word or ':' in word:
# Deal with punctuation.
lead, middle, trail = '', word, ''