summaryrefslogtreecommitdiffstats
path: root/Lib/macpath.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-03-31 13:58:20 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-03-31 13:58:20 (GMT)
commit27a353020bef4318896bf16f558ed7e2af76e40a (patch)
treedbecb6bb1bcbb66b156e536bfba198bf60952b89 /Lib/macpath.py
parent57b17ad6aeb821262aef41ffd31d1302f18e79c5 (diff)
downloadcpython-27a353020bef4318896bf16f558ed7e2af76e40a.zip
cpython-27a353020bef4318896bf16f558ed7e2af76e40a.tar.gz
cpython-27a353020bef4318896bf16f558ed7e2af76e40a.tar.bz2
Stop using string exceptions
Diffstat (limited to 'Lib/macpath.py')
-rw-r--r--Lib/macpath.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/macpath.py b/Lib/macpath.py
index f8ca051..2881c32 100644
--- a/Lib/macpath.py
+++ b/Lib/macpath.py
@@ -170,7 +170,7 @@ def expanduser(path):
"""Dummy to retain interface-compatibility with other operating systems."""
return path
-norm_error = 'macpath.norm_error: path cannot be normalized'
+class norm_error(Exception): pass
def normpath(s):
"""Normalize a pathname. Will return the same result for