Staging
v0.5.1
https://github.com/python/cpython
Revision 1b335ae281631a12201fdec29b3c55d97166fc06 authored by Dong-hee Na on 11 January 2020, 17:39:15 UTC, committed by Victor Stinner on 11 January 2020, 17:39:15 UTC
nntplib.NNTP and nntplib.NNTP_SSL now raise a ValueError
if the given timeout for their constructor is zero to
prevent the creation of a non-blocking socket.
1 parent 136735c
Raw File
Tip revision: 1b335ae281631a12201fdec29b3c55d97166fc06 authored by Dong-hee Na on 11 January 2020, 17:39:15 UTC
bpo-39259: nntplib.NNTP/NNTP_SSL now reject timeout = 0 (GH-17936)
Tip revision: 1b335ae
idle.py
import os.path
import sys


# Enable running IDLE with idlelib in a non-standard location.
# This was once used to run development versions of IDLE.
# Because PEP 434 declared idle.py a public interface,
# removal should require deprecation.
idlelib_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
if idlelib_dir not in sys.path:
    sys.path.insert(0, idlelib_dir)

from idlelib.pyshell import main  # This is subject to change
main()
back to top