gh-118201: Simplify conv_confname (#126089)

This commit is contained in:
Malcolm Smith 2024-11-19 15:42:19 +00:00 committed by GitHub
parent 5fcc3a4cee
commit c5c9286804
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 89 additions and 113 deletions

View file

@ -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