247 Private method to get the default search paths for the TLD data file. |
247 Private method to get the default search paths for the TLD data file. |
248 |
248 |
249 @return default search paths for the TLD data file |
249 @return default search paths for the TLD data file |
250 @rtype list of str |
250 @rtype list of str |
251 """ |
251 """ |
|
252 # TODO: replace this with path to our data directory to remove .qrc |
252 return [":"] |
253 return [":"] |
253 |
254 |
254 def getTldDownloadUrl(self): |
255 def getTldDownloadUrl(self): |
255 """ |
256 """ |
256 Public method to get the TLD data file download URL. |
257 Public method to get the TLD data file download URL. |
431 @return normalized host address |
432 @return normalized host address |
432 @rtype str |
433 @rtype str |
433 """ |
434 """ |
434 return host.lower() |
435 return host.lower() |
435 |
436 |
|
437 # TODO: remove this part and delete 'test_psl.txt' |
436 ################################################################# |
438 ################################################################# |
437 ## Methods below are for testing purposes |
439 ## Methods below are for testing purposes |
438 ################################################################# |
440 ################################################################# |
439 |
441 |
440 def test(self): |
442 def test(self): |