1 """ 2 The separate Idle version was eliminated years ago; 3 idlelib.idlever is no longer used by Idle 4 and will be removed in 3.6 or later. Use 5 from sys import version 6 IDLE_VERSION = version[:version.index(' ')] 7 """ 8 # Kept for now only for possible existing extension use 9 import warnings as w 10 w.warn(__doc__, DeprecationWarning, stacklevel=2) 11 from sys import version 12 IDLE_VERSION = version[:version.index(' ')] 13