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
|
@ -113,7 +113,7 @@ def __get_field_sep(record):
|
|||
if fs:
|
||||
return fs
|
||||
else:
|
||||
raise KeyError, '>> passwd database fields not delimited <<'
|
||||
raise KeyError('>> passwd database fields not delimited <<')
|
||||
|
||||
# class to match the new record field name accessors.
|
||||
# the resulting object is intended to behave like a read-only tuple,
|
||||
|
@ -160,7 +160,7 @@ def __read_passwd_file():
|
|||
if passwd_file:
|
||||
passwd = open(passwd_file, 'r')
|
||||
else:
|
||||
raise KeyError, '>> no password database <<'
|
||||
raise KeyError('>> no password database <<')
|
||||
uidx = {}
|
||||
namx = {}
|
||||
sep = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue