Skip to content

Commit

Permalink
fixup! Rename variable to avoid confusion.
Browse files Browse the repository at this point in the history
  • Loading branch information
alkanen committed Jul 15, 2020
1 parent b712745 commit dedb1ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions django_extensions/management/commands/show_urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ def handle(self, *args, **options):
raise CommandError("Error occurred while trying to load %s: %s" % (getattr(settings, urlconf), str(e)))

view_functions = self.extract_views_from_urlpatterns(urlconf.urlpatterns)
for (func, regex, url_name, *deprecated) in view_functions:
if deprecated:
deprecated = deprecated[0]
for (func, regex, url_name, *dep_status) in view_functions:
if dep_status:
deprecated = bool(dep_status[0])
else:
deprecated = False

Expand Down

0 comments on commit dedb1ed

Please sign in to comment.