Bad 2to3 python conversion : map() function needs to be included into list() operator. If not, they're only analyzed once
This commit is contained in:
@@ -60,7 +60,7 @@ class IWLAPreAnalysisRobots(IPlugin):
|
||||
self.API_VERSION = 1
|
||||
|
||||
def load(self):
|
||||
self.awstats_robots = map(lambda x : re.compile(('.*%s.*') % (x), re.IGNORECASE), awstats_data.robots)
|
||||
self.awstats_robots = list(map(lambda x : re.compile(('.*%s.*') % (x), re.IGNORECASE), awstats_data.robots))
|
||||
self.robot_re = re.compile(r'.*bot.*', re.IGNORECASE)
|
||||
self.crawl_re = re.compile(r'.*crawl.*', re.IGNORECASE)
|
||||
self.logger = logging.getLogger(self.__class__.__name__)
|
||||
|
||||
Reference in New Issue
Block a user