Skip to content

Commit

Permalink
python3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinwahl committed May 20, 2015
1 parent 2997745 commit c929a0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fusionbox/middleware.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
from six.moves.urllib.parse import urlparse, urljoin
import warnings
import itertools

from collections import defaultdict

Expand Down Expand Up @@ -219,7 +220,7 @@ def validate_redirect(redirect, with_slash=False):
if error_messages and raise_errors:
raise ImproperlyConfigured('There were errors while parsing redirects. Run ./manage.py validate_redirects for error details')
# Output warnings for all errors and warnings found.
for messages in warning_messages.values() + error_messages.values():
for messages in itertools.chain(warning_messages.values(), error_messages.values()):
for message in messages:
warnings.warn(message)

Expand Down

0 comments on commit c929a0e

Please sign in to comment.