mirror of
https://github.com/python/cpython.git
synced 2025-08-10 03:49:18 +00:00
Raise statement normalization in Lib/.
This commit is contained in:
parent
8b3febef2f
commit
ce36ad8a46
80 changed files with 502 additions and 530 deletions
|
@ -112,7 +112,7 @@ class Message:
|
|||
def rewindbody(self):
|
||||
"""Rewind the file to the start of the body (if seekable)."""
|
||||
if not self.seekable:
|
||||
raise IOError, "unseekable file"
|
||||
raise IOError("unseekable file")
|
||||
self.fp.seek(self.startofbody)
|
||||
|
||||
def readheaders(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue