137a37292e327cf304777b3fd9721dd772ad775e,dev/tools/release/setversion.py,,setreleasedate,#,41
Before Change
os.chdir(pathname)
os.chdir("../../../")
// update __init__.py
init_py = open("brian2/__init__.py", "r").read()
init_py = re.sub("__release_date__\s*=\s*".*?"", "__release_date__ = "" + releasedate + """, init_py)
open("brian2/__init__.py", "w").write(init_py)
if __name__ == "__main__":
version = raw_input("New version: ")
setversion(version)
After Change
os.chdir(pathname)
os.chdir("../../../")
// update __init__.py
with open("brian2/__init__.py", "r"):
init_py = f.read()
init_py = re.sub("__release_date__\s*=\s*".*?"", "__release_date__ = "" + releasedate + """, init_py)
with open("brian2/__init__.py", "w") as f:
f.write(init_py)
if __name__ == "__main__":
version = raw_input("New version: ")
setversion(version)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 13
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: setreleasedate
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: