f1a093ebed17dab737153888733c06ed807b6746,PyInstaller/depend/analysis.py,TOC,intersect,#TOC#Any#,305

Before Change


    def intersect(self, other):
        rslt = TOC()
        for tpl in other:
            if self.fltr.get(tpl[0], 0):
                rslt.append(tpl)
        return rslt


// TODO This class should raise exceptions on external callers attempting to

After Change


        return result.__sub__(self)

    def intersect(self, other):
        other = TOC(other)
        filenames = self.filenames.intersection(other.filenames)
        result = TOC()
        for name, path, typecode in other:
            if name in filenames:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pyinstaller/pyinstaller
Commit Name: f1a093ebed17dab737153888733c06ed807b6746
Time: 2015-05-11
Author: h.goebel@crazy-compilers.com
File Name: PyInstaller/depend/analysis.py
Class Name: TOC
Method Name: intersect


Project Name: pyinstaller/pyinstaller
Commit Name: f1a093ebed17dab737153888733c06ed807b6746
Time: 2015-05-11
Author: h.goebel@crazy-compilers.com
File Name: PyInstaller/depend/analysis.py
Class Name: TOC
Method Name: __sub__


Project Name: pyinstaller/pyinstaller
Commit Name: 5710375848bb5753d3e69803dd733bbfafdc3cdc
Time: 2015-09-03
Author: h.goebel@crazy-compilers.com
File Name: PyInstaller/building/toc_conversion.py
Class Name: DependencyProcessor
Method Name: make_datas_toc