Issue.remove_from_labels fails when the label passed is a string with whitespace characters
This commit is contained in:
Raja Reddy Karri
2015-08-27 15:49:35 +05:30
parent 95640f3ae6
commit 3aee448428
+3
View File
@@ -27,6 +27,7 @@
# #
# ##############################################################################
import urllib
import github.GithubObject
import github.PaginatedList
@@ -355,6 +356,8 @@ class Issue(github.GithubObject.CompletableGithubObject):
assert isinstance(label, (github.Label.Label, str, unicode)), label
if isinstance(label, github.Label.Label):
label = label._identity
else:
label = urllib.quote(label)
headers, data = self._requester.requestJsonAndCheck(
"DELETE",
self.url + "/labels/" + label