Helpviewer/GreaseMonkey/GreaseMonkeyScript.py

changeset 5587
ea526b78ee6c
parent 5389
9b1c800daff3
child 6048
82ad8ec9548c
equal deleted inserted replaced
5586:0e5421d679e7 5587:ea526b78ee6c
132 """ 132 """
133 Public method to get the list of included URLs. 133 Public method to get the list of included URLs.
134 134
135 @return list of included URLs (list of strings) 135 @return list of included URLs (list of strings)
136 """ 136 """
137 list = [] 137 urlList = []
138 for matcher in self.__include: 138 for matcher in self.__include:
139 list.append(matcher.pattern()) 139 urlList.append(matcher.pattern())
140 return list 140 return urlList
141 141
142 def exclude(self): 142 def exclude(self):
143 """ 143 """
144 Public method to get the list of excluded URLs. 144 Public method to get the list of excluded URLs.
145 145
146 @return list of excluded URLs (list of strings) 146 @return list of excluded URLs (list of strings)
147 """ 147 """
148 list = [] 148 urlList = []
149 for matcher in self.__exclude: 149 for matcher in self.__exclude:
150 list.append(matcher.pattern()) 150 urlList.append(matcher.pattern())
151 return list 151 return urlList
152 152
153 def script(self): 153 def script(self):
154 """ 154 """
155 Public method to get the Javascript source. 155 Public method to get the Javascript source.
156 156

eric ide

mercurial