diff options
author | Mariatta <Mariatta@users.noreply.github.com> | 2017-03-27 02:53:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-27 02:53:37 (GMT) |
commit | d2fc7824104172b47cdcea09d7ce699d5bfc2ba6 (patch) | |
tree | d819ee34a34d6d32920f4c10cfaca2c224ff045e | |
parent | ceff32fb833e7be42508ffa73344e2e56865e54b (diff) | |
download | cpython-d2fc7824104172b47cdcea09d7ce699d5bfc2ba6.zip cpython-d2fc7824104172b47cdcea09d7ce699d5bfc2ba6.tar.gz cpython-d2fc7824104172b47cdcea09d7ce699d5bfc2ba6.tar.bz2 |
import sys before we use it on line 9 (GH-828) (GH-833)
(cherry picked from commit 0579e81f30d00da562f021760d5b6a9c35186520)
-rwxr-xr-x | Lib/idlelib/pyshell.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/idlelib/pyshell.py b/Lib/idlelib/pyshell.py index f3ee391..dd6c997 100755 --- a/Lib/idlelib/pyshell.py +++ b/Lib/idlelib/pyshell.py @@ -1,5 +1,7 @@ #! /usr/bin/env python3 +import sys + try: from tkinter import * except ImportError: @@ -25,7 +27,6 @@ from platform import python_version, system import re import socket import subprocess -import sys import threading import time import tokenize |