]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue 10899: Remove function type annotations from the stdlib
authorRaymond Hettinger <python@rcn.com>
Thu, 13 Jan 2011 02:52:26 +0000 (02:52 +0000)
committerRaymond Hettinger <python@rcn.com>
Thu, 13 Jan 2011 02:52:26 +0000 (02:52 +0000)
Lib/_pyio.py

index 93626e25291f010bd3b4368a34f09ad298d31ef9..39ddc823846888ce7d631065481240da5e0d5f5f 100644 (file)
@@ -1567,7 +1567,7 @@ class TextIOWrapper(TextIOBase):
     def isatty(self):
         return self.buffer.isatty()
 
-    def write(self, s: str):
+    def write(self, s):
         if self.closed:
             raise ValueError("write to closed file")
         if not isinstance(s, str):