def compressing_file(FILE_TO_COMPRESS):

    try:
        f_in = open(FILE_TO_COMPRESS)
        f_out = gzip.open(FILE_TO_COMPRESS + '.gz', 'wb')
        f_out.writelines(f_in)
        f_in.close()
        f_out.close()

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