d39d3272220da5bcb0c43985e6c1e3903dac2bf5,setup.py,,main,#,6

Before Change


def main():

    // get a nice version number from git-describe
    gitcmd = ["git", "describe", "--always", "--abbrev=4"]
    try:
        gitproc = subprocess.Popen(gitcmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
        retcode = gitproc.wait()
        if retcode:
            raise GitError(gitproc.stderr.read())
        version = gitproc.stdout.next().strip()
        version = re.sub(r"^v", "", version)

After Change


def main():

    try:
        version = get_version()
    except Exception as e:
        sys.stderr.write(str(e))
        return
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pysb/pysb
Commit Name: d39d3272220da5bcb0c43985e6c1e3903dac2bf5
Time: 2011-08-07
Author: jmuhlich@bitflood.org
File Name: setup.py
Class Name:
Method Name: main


Project Name: pyinstaller/pyinstaller
Commit Name: 73c62b48776f258b8ecd477fac16b40c92f5c78f
Time: 2013-02-24
Author: mzibr.public@gmail.com
File Name: setup.py
Class Name:
Method Name:


Project Name: erichson/ristretto
Commit Name: 86022cd465092cdaceaeda6a8351dcb7319d2a39
Time: 2018-05-27
Author: markus.quade@gmail.com
File Name: setup.py
Class Name:
Method Name: