5b2327e051d5243f80b9b9f39f6800bbc8749bed,setup.py,,read,#Any#,41

Before Change


// PYPI page will contain complete PyInstaller changelog.
def read(filename):
    try:
        return unicode(codecs.open(filename, encoding="utf-8").read())
    except NameError:
        return open(filename, "r", encoding="utf-8").read()
long_description = u"\n\n".join([read("README.rst"),
                                 read("doc/_dummy-roles.txt"),

After Change


// Create long description from README.rst and doc/CHANGES.rst.
// PYPI page will contain complete PyInstaller changelog.
def read(filename):
    if is_py2:
        with codecs.open(filename, encoding="utf-8") as fp:
            return unicode(fp.read())
    else:
        with open(filename, "r", encoding="utf-8") as fp:
            return fp.read()
long_description = u"\n\n".join([read("README.rst"),
                                 read("doc/_dummy-roles.txt"),
                                 read("doc/CHANGES.rst")])
if sys.version_info < (3,):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


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: UFAL-DSG/tgen
Commit Name: a3d6b8862c04894b903a269ed6f7f16a9899e320
Time: 2016-03-07
Author: odusek@ufal.mff.cuni.cz
File Name: tgen/parallel_seq2seq_train.py
Class Name: ParallelSeq2SeqTraining
Method Name: train


Project Name: UFAL-DSG/tgen
Commit Name: 4bd3c056d7a3a1ebaf3c040944708912d001abd3
Time: 2016-04-14
Author: odusek@ufal.mff.cuni.cz
File Name: tgen/seq2seq.py
Class Name: Seq2SeqGen
Method Name: train