Commit e0889be
stubgen: use sys.version_info, rather than hardcoding 3.6 (python#10907)
Not too familiar with stubgen, so maybe there's a good reason for
hardcoding, e.g. to ensure stubs capture sys.version checks in the
source? Most stubs in typeshed use sys.version checks for a) checking
Python 2, b) if they're stdlib backports. So hopefully this is a
reasonable change.
Fixes python#109051 parent 8ba7336 commit e0889be
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1661 | 1661 | | |
1662 | 1662 | | |
1663 | 1663 | | |
1664 | | - | |
| 1664 | + | |
1665 | 1665 | | |
1666 | 1666 | | |
1667 | 1667 | | |
| |||
0 commit comments