diff --git a/Lib/os.py b/Lib/os.py index 0557f1442a..dbebf8959b 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)