def chomp_commit_offset(version):
 if (version is None):
  return version
 else:
  return str(version).split('+')[0]

def chomp_commit_offset ( version ) : if ( version is None ) : return version else : return str ( version ) . split ( '+' ) [ 0 ]
chomp any "+git .