mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-02 11:51:10 +00:00
Generate code for url quoting
This commit is contained in:
+1
-2
@@ -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
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user