A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-December/123296.html below:

Use OESeeror instead of os.error (#16720)

[Python-Dev] [Python-checkins] cpython: Use OESeeror instead of os.error (#16720) [Python-Dev] [Python-checkins] cpython: Use OESeeror instead of os.error (#16720)Jeremy Kloth jeremy.kloth at gmail.com
Mon Dec 24 20:16:08 CET 2012
On Mon, Dec 24, 2012 at 11:00 AM, andrew.svetlov
<python-checkins at python.org> wrote:
> http://hg.python.org/cpython/rev/6cfe2982de42
> changeset:   81017:6cfe2982de42
> parent:      81011:a7c9869a5114
> user:        Andrew Svetlov <andrew.svetlov at gmail.com>
> date:        Mon Dec 24 19:58:48 2012 +0200
> summary:
>   Use OESeeror instead of os.error (#16720)
>
> diff --git a/Lib/os.py b/Lib/os.py
> --- a/Lib/os.py
> +++ b/Lib/os.py
> @@ -275,7 +275,7 @@
>      while head and tail:
>          try:
>              rmdir(head)
> -        except error:
> +        except OSrror:
>              break
>          head, tail = path.split(head)
>

Shouldn't that be OSError?
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4