(data)
return file_content
If the passed data is gzipped, it will be unzipped. Otherwise it will be returned untouched
        :param data:
        :return:
If the passed data is gzipped, it will be unzipped. Otherwise it will be returned untouched
        :param data:
        :return:
If the passed data is gzipped it will be unzipped . Otherwise it will be returned untouched : param data : : return :
def _unzip(data):
        """
        If the passed data is gzipped, it will be unzipped. Otherwise it will be returned untouched
        :param data:
        :return:
        """

        is_zipped = is_gzipped(data)
        if is_zipped:
            file_content = GzipFile("", "r", 0, BytesIO(data)).read()
        else:
            file_content = data
        return file_content
def _unzip ( data ) : is_zipped = is_gzipped ( data ) if is_zipped : file_content = GzipFile ( "" , "r" , 0 , BytesIO ( data ) ) . read ( ) else : file_content = data return file_content