137a37292e327cf304777b3fd9721dd772ad775e,dev/tools/release/setversion.py,,setversion,#Any#,14

Before Change


    conf_py = re.sub("release\s*=\s*".*?"", "release = "" + docs_release + """, conf_py)
    open("docs_sphinx/conf.py", "w").write(conf_py)
    // update conda recipe
    meta_yaml = open("dev/conda-recipe/meta.yaml", "r").read()
    meta_yaml = re.sub("version\s*:\s*".*?"", "version: "" + version + """, meta_yaml)
    open("dev/conda-recipe/meta.yaml", "w").write(meta_yaml)

After Change


    with open("docs_sphinx/conf.py", "w") as f:
        f.write(conf_py)
    // update conda recipe
    with open("dev/conda-recipe/meta.yaml", "r") as f:
        meta_yaml = f.read()
    meta_yaml = re.sub("version\s*:\s*".*?"", "version: "" + version + """, meta_yaml)
    with open("dev/conda-recipe/meta.yaml", "w") as f:
        f.write(meta_yaml)


def setreleasedate():
    releasedate = str(datetime.date.today())
    pathname = os.path.abspath(os.path.dirname(__file__))
    os.chdir(pathname)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 11

Instances


Project Name: brian-team/brian2
Commit Name: 137a37292e327cf304777b3fd9721dd772ad775e
Time: 2017-10-24
Author: teo@zifeo.com
File Name: dev/tools/release/setversion.py
Class Name:
Method Name: setversion


Project Name: brian-team/brian2
Commit Name: 137a37292e327cf304777b3fd9721dd772ad775e
Time: 2017-10-24
Author: teo@zifeo.com
File Name: dev/tools/static_codegen/units.py
Class Name:
Method Name:


Project Name: brian-team/brian2
Commit Name: 98caf5bdd6b6acbbca884d9d95b79f242b5535a5
Time: 2017-10-23
Author: teo@zifeo.com
File Name: brian2/utils/filetools.py
Class Name:
Method Name: copy_directory