platform: update for py39 (#4506)

platform.DEVNULL seemed undocumented, but is eg, still mentioned in the
header comment of platform.py. So feels surprising this was removed
without much warning.

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2020-08-31 15:28:37 -07:00
committed by GitHub
parent 2d476d091b
commit ccfc1850e9
2 changed files with 4 additions and 2 deletions

View File

@@ -1,7 +1,9 @@
# Stubs for platform (Python 3.5)
import sys
from os import devnull as DEV_NULL
if sys.version_info < (3, 9):
from os import devnull as DEV_NULL
from typing import NamedTuple, Optional, Tuple
if sys.version_info >= (3, 8):