def decompressing_file(FILE_TO_DECOMPRESS):

    try:
        f_in = gzip.open(FILE_TO_DECOMPRESS, 'rb')
        contend = f_in.read()
        f_in.close()

        file_dec = FILE_TO_DECOMPRESS.split('.')[0] + '.txt'
        f_out = open(file_dec, 'w')
        f_out.writelines(contend)
        f_out.close()

        return file_dec

    except __HOLE__ as e:
        print "I/O error({0}): {1} for file {2}".format(e.errno, e.strerror, FILE_TO_DECOMPRESS)
dataset/ETHPy150Open bt3gl/Neat-Problems-in-Python-and-Flask/Version-Control/src/system_operations.py/decompressing_file