Fix error in exception message.
diff --git a/Lib/gzip.py b/Lib/gzip.py
index 761d941..a5d4087 100644
--- a/Lib/gzip.py
+++ b/Lib/gzip.py
@@ -205,7 +205,7 @@
     def read(self, size=-1):
         if self.mode != READ:
             import errno
-            raise IOError(errno.EBADF, "write() on read-only GzipFile object")
+            raise IOError(errno.EBADF, "read() on write-only GzipFile object")
 
         if self.extrasize <= 0 and self.fileobj is None:
             return ''