mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 10:51:14 +00:00
Use urllib.urlencode
This commit is contained in:
+2
-2
@@ -1,6 +1,7 @@
|
||||
import httplib
|
||||
import json
|
||||
import base64
|
||||
import urllib
|
||||
|
||||
class UnknownGithubObject( Exception ):
|
||||
pass
|
||||
@@ -59,8 +60,7 @@ class Requester:
|
||||
if parameters is None or len( parameters ) == 0:
|
||||
return url
|
||||
else:
|
||||
### @todo urlencode
|
||||
return url + "?" + "&".join( str( key ) + "=" + str( value ) for key, value in parameters.iteritems() )
|
||||
return url + "?" + urllib.urlencode( parameters )
|
||||
|
||||
def __strucutredFromJson( self, data ):
|
||||
if len( data ) == 0:
|
||||
|
||||
Reference in New Issue
Block a user