I want to read gzip and update the content.
However, I get the error
'AttributeError: 'GzipFile' object has no attribute 'extrastart''.
import gzip
with gzip.open("PhoneWindowManager.java.gz", "w+") as file:
for line in file:
if "setHdmiPlugged" in line:
call = "#setHdmiPlugged"
if call in line:
continue
else:
print line
break