codeclassroom/PlagCheck

efficient looping

Bhupesh-V opened this issue · 0 comments

The statement

diff_results = self.__getLineNumbers(element.a.get('href'))

gets executed 2 times inside the loop in def __extractInfo(self, url): method.

The problem is both times the link is same, so it should run only 1 time(i.e that is one iteration of inner loop is redundant)