def call_git_describe(abbrev):
    try:
        p = Popen(['git', 'describe', '--abbrev=%d' % abbrev, "--dirty"],
                  stdout=PIPE, stderr=PIPE)
        p.stderr.close()
        line = p.stdout.readlines()[0]
        return line.strip()

    except:
        return None
dataset/ETHPy150Open remakeelectric/mqtt-malaria/version.py/call_git_describe/original