summaryrefslogtreecommitdiffstats
path: root/Lib/plat-os2emx/pwd.py
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-08-23 00:01:55 (GMT)
committerCollin Winter <collinw@gmail.com>2007-08-23 00:01:55 (GMT)
commite45be28be665a04aef0d0a7444ba27fde2dd2d5f (patch)
tree12b6261b32a5913ed104704734e7b7a15cd74e69 /Lib/plat-os2emx/pwd.py
parentcfe02a498b107a6436003e2bf7a48aefe4e3d59f (diff)
downloadcpython-e45be28be665a04aef0d0a7444ba27fde2dd2d5f.zip
cpython-e45be28be665a04aef0d0a7444ba27fde2dd2d5f.tar.gz
cpython-e45be28be665a04aef0d0a7444ba27fde2dd2d5f.tar.bz2
Convert raise statements in Lib/plat-{mac,os2emx}.
Diffstat (limited to 'Lib/plat-os2emx/pwd.py')
-rw-r--r--Lib/plat-os2emx/pwd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/plat-os2emx/pwd.py b/Lib/plat-os2emx/pwd.py
index 95d766a..4924c90 100644
--- a/Lib/plat-os2emx/pwd.py
+++ b/Lib/plat-os2emx/pwd.py
@@ -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