~roadmr/canonical-identity-provider/fix-deprecation-warnings-1

« back to all changes in this revision

Viewing changes to src/api/v20/handlers.py

  • Committer: Tom Wardill
  • Date: 2018-02-14 14:05:59 UTC
  • mfrom: (1602 work)
  • mto: (1597.1.44 django-1.10)
  • mto: This revision was merged to the branch mainline in revision 1603.
  • Revision ID: tom.wardill@canonical.com-20180214140559-ow5txzwy46nopws2
Merge flake8 changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
721
721
            parts = urlparse.urlparse(http_url)
722
722
 
723
723
            # the original_http_url has query string to be merged
724
 
            parse_qsl = lambda qs: urlparse.parse_qsl(qs.encode('utf-8'))
 
724
            def parse_qsl(qs):
 
725
                return urlparse.parse_qsl(qs.encode('utf-8'))
725
726
            parsed_query_string = set(parse_qsl(query_string))
726
727
            original_query = set(parse_qsl(parts.query))
727
728
            qs = original_query.union(parsed_query_string)