mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Convert raise statements in Lib/plat-{mac,os2emx}.
This commit is contained in:
parent
cfe02a498b
commit
e45be28be6
51 changed files with 506 additions and 506 deletions
|
@ -47,7 +47,7 @@ def link(source, target):
|
|||
|
||||
s = os.open(source, os.O_RDONLY | os.O_BINARY)
|
||||
if os.isatty(s):
|
||||
raise OSError, (errno.EXDEV, 'Cross-device link')
|
||||
raise OSError(errno.EXDEV, 'Cross-device link')
|
||||
data = os.read(s, 1024)
|
||||
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue