summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMariatta <Mariatta@users.noreply.github.com>2017-03-27 02:53:37 (GMT)
committerGitHub <noreply@github.com>2017-03-27 02:53:37 (GMT)
commitd2fc7824104172b47cdcea09d7ce699d5bfc2ba6 (patch)
treed819ee34a34d6d32920f4c10cfaca2c224ff045e
parentceff32fb833e7be42508ffa73344e2e56865e54b (diff)
downloadcpython-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-xLib/idlelib/pyshell.py3
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