Generate code for url quoting

This commit is contained in:
Vincent Jacques
2012-05-27 13:30:38 +01:00
parent 4bf2e31da7
commit 075d3d961d
7 changed files with 42 additions and 16 deletions
+1 -2
View File
@@ -2,7 +2,6 @@
# Do not modify it manually, your work would be lost.
import urllib
import PaginatedList
from GithubObject import *
@@ -47,7 +46,7 @@ class Label( object ):
@property
def _identity( self ):
return urllib.quote( self.name )
return urllib.quote( str( self.name ) )
def __initAttributes( self ):
self.__color = None
+1 -2
View File
@@ -2,7 +2,6 @@
# Do not modify it manually, your work would be lost.
import urllib
import PaginatedList
from GithubObject import *
import Branch
@@ -717,7 +716,7 @@ class Repository( object ):
def get_label( self, name ):
status, headers, data = self.__requester.request(
"GET",
str( self.url ) + "/labels" + "/" + urllib.quote( name ),
str( self.url ) + "/labels/" + urllib.quote( str( name ) ),
None,
None
)