mirror of
https://github.com/python/cpython.git
synced 2025-10-11 17:32:49 +00:00
Issue #16706: get rid of os.error
This commit is contained in:
parent
a191959849
commit
ad28c7f9da
33 changed files with 4089 additions and 4123 deletions
|
@ -949,7 +949,7 @@ def print_directory():
|
|||
print("<H3>Current Working Directory:</H3>")
|
||||
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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue