summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/pyshell.py
diff options
context:
space:
mode:
authorJelle Zijlstra <jelle.zijlstra@gmail.com>2017-03-27 02:17:39 (GMT)
committerterryjreedy <tjreedy@udel.edu>2017-03-27 02:17:39 (GMT)
commit0579e81f30d00da562f021760d5b6a9c35186520 (patch)
tree039c766ec2cdea74bd92ffa2db49ebb117434e75 /Lib/idlelib/pyshell.py
parent5fb278fd58688177a113755e1996cd4c9706477c (diff)
downloadcpython-0579e81f30d00da562f021760d5b6a9c35186520.zip
cpython-0579e81f30d00da562f021760d5b6a9c35186520.tar.gz
cpython-0579e81f30d00da562f021760d5b6a9c35186520.tar.bz2
import sys before we use it on line 9 (#828)
Diffstat (limited to 'Lib/idlelib/pyshell.py')
-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