Richard Oudkerk added the comment:

>  try:
>      _MAXFD = os.sysconf("SC_OPEN_MAX")
> -except:
> +except ValueError:
>      _MAXFD = 256

os.sysconf() might raise OSError.  I think ValueError is only  raised if 
_SC_OPEN_MAX was undefined when the module was compiled.

----------
nosy: +sbt

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16261>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to