0e1816da44c9769c9e1637b0c82660f010e0755a,setup.py,,read,#,44

Before Change




def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()

def read_to_rst(fname):
    try:
        import pypandoc

After Change



def read(fname):
    try:
        with open(os.path.join(os.path.dirname(__file__), fname)) as f:
            return unicode(f.read())
    except NameError:
        //python 3
        with open(os.path.join(os.path.dirname(__file__), fname)) as f:
            return (f.read())
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: SheffieldML/GPy
Commit Name: 0e1816da44c9769c9e1637b0c82660f010e0755a
Time: 2015-10-07
Author: ibinbei@gmail.com
File Name: setup.py
Class Name:
Method Name: read


Project Name: pyinstaller/pyinstaller
Commit Name: 5b2327e051d5243f80b9b9f39f6800bbc8749bed
Time: 2018-09-09
Author: contact@tiger-222.fr
File Name: setup.py
Class Name:
Method Name: read


Project Name: hyperdashio/hyperdash-sdk-py
Commit Name: c36bf38b0d2de0754725e7554720a9ac4964ec21
Time: 2017-09-26
Author: richardartoul@gmail.com
File Name: hyperdash/constants.py
Class Name:
Method Name: get_hyperdash_version