Add highlight search to search_code function (#925)

*  add highlight search to search_code function

*  add highlighting search code tests
This commit is contained in:
h.shi
2018-10-10 16:38:47 +08:00
committed by Wan Liuyang
parent c13b43ea9c
commit 1fa25670f7
6 changed files with 39 additions and 3 deletions
+4
View File
@@ -188,6 +188,10 @@ class GithubObject(object):
def _makeListOfIntsAttribute(value):
return GithubObject.__makeSimpleListAttribute(value, int)
@staticmethod
def _makeListOfDictsAttribute(value):
return GithubObject.__makeSimpleListAttribute(value, dict)
@staticmethod
def _makeListOfListOfStringsAttribute(value):
return GithubObject.__makeSimpleListAttribute(value, list)