a680f74e5a403737fab700486fd25d83274ac738,PyInstaller/building/datastruct.py,TOC,append,#TOC#Any#,75

Before Change


        if not isinstance(entry, tuple):
            logger.info("TOC found a %s, not a tuple", entry)
            raise TypeError("Expected tuple, not %s." % type(entry).__name__)
        name, path, typecode = entry
        if name not in self.filenames:
            self.filenames.add(name)
            super(TOC, self).append((name, path, typecode))

After Change


            logger.info("TOC found a %s, not a tuple", entry)
            raise TypeError("Expected tuple, not %s." % type(entry).__name__)

        unique = unique_name(entry)

        if unique not in self.filenames:
            self.filenames.add(unique)
            super(TOC, self).append(entry)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pyinstaller/pyinstaller
Commit Name: a680f74e5a403737fab700486fd25d83274ac738
Time: 2016-05-03
Author: codewarrior@hawaii.rr.com
File Name: PyInstaller/building/datastruct.py
Class Name: TOC
Method Name: append


Project Name: pyinstaller/pyinstaller
Commit Name: a680f74e5a403737fab700486fd25d83274ac738
Time: 2016-05-03
Author: codewarrior@hawaii.rr.com
File Name: PyInstaller/building/datastruct.py
Class Name: TOC
Method Name: insert


Project Name: pyinstaller/pyinstaller
Commit Name: a680f74e5a403737fab700486fd25d83274ac738
Time: 2016-05-03
Author: codewarrior@hawaii.rr.com
File Name: PyInstaller/building/datastruct.py
Class Name: TOC
Method Name: __sub__