You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ref: Remove more residual Python 2 compatibility code
Follow-up to 25baa75. Removes dead-code guards that only existed
to tolerate Python 2 stdlib differences:
- try/except AttributeError around nanosecond_time() in Span and
StreamedSpan. time.perf_counter has existed since Python 3.3 and
time.perf_counter_ns since 3.7, so the exception can never fire
on any supported Python 3 version.
- try/except ImportError around asyncio.iscoroutinefunction in the
Django integration. asyncio.iscoroutinefunction has existed since
Python 3.4.
- Redundant IOError in exception tuples. IOError is an alias for
OSError in Python 3.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
0 commit comments