Helpviewer/WebPlugins/ClickToFlash/ClickToFlashPlugin.py

branch
Py2 comp.
changeset 3060
5883ce99ee12
parent 3057
10516539f238
parent 3035
36e9f388958b
child 3145
a9de05d4a22f
equal deleted inserted replaced
3058:0a02c433f52d 3060:5883ce99ee12
148 148
149 @param host host to check for (string) 149 @param host host to check for (string)
150 @return flag indicating presence in the whitelist (boolean) 150 @return flag indicating presence in the whitelist (boolean)
151 """ 151 """
152 return host in self.__whitelist or \ 152 return host in self.__whitelist or \
153 "www." + host in self.__whitelist or \ 153 "www." + host in self.__whitelist or \
154 host.replace("www.", "") in self.__whitelist 154 host.replace("www.", "") in self.__whitelist
155 155
156 def addToWhitelist(self, host): 156 def addToWhitelist(self, host):
157 """ 157 """
158 Public method to add a host to the whitelist. 158 Public method to add a host to the whitelist.
159 159

eric ide

mercurial