Skip to content

Commit

Permalink
Use six for moved urllib modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Bliskovsky committed May 1, 2018
1 parent b7b37f7 commit b8629c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions widgy/contrib/form_builder/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ class Meta:
abstract = True

def execute(self, request, form):
query_string = urllib.urlencode(self.get_mapping(request, form))
urllib.urlopen(self.url_to_post, query_string)
query_string = six.moves.urllib.parse.urlencode(self.get_mapping(request, form)).encode('ascii')
six.moves.urllib.request.urlopen(self.url_to_post, query_string)


class MappingValue(FormElement):
Expand Down

0 comments on commit b8629c6

Please sign in to comment.