FogBugz » FogBugzPy A Python wrapper for the FogBugz API Read More
Clone URL:  
Pushed to one repository · View In Graph Contained in master

Restore encoding of URL on Python 2

--HG--
extra : rebase_source : 2cdc408e8acf74600c3cdb3ff91aad0e4fd5511c

Changeset 64a97853df52

Parent 14aa9294a3a2

by Jason R. Coombs

Changes to one file · Browse files at 64a97853df52 Showing diff from parent 14aa9294a3a2 Diff from another changeset...

Change 1 of 1 Show Entire File fogbugz.py Stacked
 
129
130
131
132
 
 
 
 
133
134
135
 
129
130
131
 
132
133
134
135
136
137
138
@@ -129,7 +129,10 @@
  'Content-Length': str(len(body))}     try: - request = urllib_request.Request(self._url, body, headers) + url = self._url + if sys.version_info() < (3,): + url = self._url.encode('utf-8') + request = urllib_request.Request(url, body, headers)   response = BeautifulSoup(self._opener.open(request)).response   except urllib_request.URLError:   e = sys.exc_info()[1]