diff --git a/Lib/os.py b/Lib/os.py index 0557f1442a2..dbebf8959b0 100644 --- a/Lib/os.py +++ b/Lib/os.py @@ -275,7 +275,7 @@ def removedirs(name): while head and tail: try: rmdir(head) - except OSrror: + except OSError: break head, tail = path.split(head)