From ad28c7f9dad791567afa0624acfb3ba430851965 Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Tue, 18 Dec 2012 22:02:39 +0200 Subject: Issue #16706: get rid of os.error --- Lib/cgi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/cgi.py') diff --git a/Lib/cgi.py b/Lib/cgi.py index e964f0c435..4222ef20b8 100755 --- a/Lib/cgi.py +++ b/Lib/cgi.py @@ -949,7 +949,7 @@ def print_directory(): print("

Current Working Directory:

") try: pwd = os.getcwd() - except os.error as msg: + except OSError as msg: print("os.error:", html.escape(str(msg))) else: print(html.escape(pwd)) -- cgit v1.2.1