mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
gh-118201: Simplify conv_confname (#126089)
This commit is contained in:
parent
5fcc3a4cee
commit
c5c9286804
6 changed files with 89 additions and 113 deletions
|
@ -632,8 +632,7 @@ def fd_count():
|
|||
if hasattr(os, 'sysconf'):
|
||||
try:
|
||||
MAXFD = os.sysconf("SC_OPEN_MAX")
|
||||
except (OSError, ValueError):
|
||||
# gh-118201: ValueError is raised intermittently on iOS
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
old_modes = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue