aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/plat-os2emx
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/plat-os2emx')
-rw-r--r--Lib/plat-os2emx/_emx_link.py2
-rw-r--r--Lib/plat-os2emx/grp.py4
-rw-r--r--Lib/plat-os2emx/pwd.py4
3 files changed, 5 insertions, 5 deletions
diff --git a/Lib/plat-os2emx/_emx_link.py b/Lib/plat-os2emx/_emx_link.py
index e8298680b12..01e6b54c8d5 100644
--- a/Lib/plat-os2emx/_emx_link.py
+++ b/Lib/plat-os2emx/_emx_link.py
@@ -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:
diff --git a/Lib/plat-os2emx/grp.py b/Lib/plat-os2emx/grp.py
index fceb4c94f9d..2ac3ca634c2 100644
--- a/Lib/plat-os2emx/grp.py
+++ b/Lib/plat-os2emx/grp.py
@@ -94,7 +94,7 @@ def __get_field_sep(record):
if fs:
return fs
else:
- raise KeyError, '>> group database fields not delimited <<'
+ raise KeyError('>> group 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,
@@ -136,7 +136,7 @@ def __read_group_file():
if group_file:
group = open(group_file, 'r')
else:
- raise KeyError, '>> no group database <<'
+ raise KeyError('>> no group database <<')
gidx = {}
namx = {}
sep = None
diff --git a/Lib/plat-os2emx/pwd.py b/Lib/plat-os2emx/pwd.py
index 95d766a79c4..4924c907334 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