From: Mariatta Date: Mon, 27 Mar 2017 02:53:37 +0000 (-0700) Subject: import sys before we use it on line 9 (GH-828) (GH-833) X-Git-Tag: v3.6.2rc1~281 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d2fc7824104172b47cdcea09d7ce699d5bfc2ba6;p=thirdparty%2FPython%2Fcpython.git import sys before we use it on line 9 (GH-828) (GH-833) (cherry picked from commit 0579e81f30d00da562f021760d5b6a9c35186520) --- diff --git a/Lib/idlelib/pyshell.py b/Lib/idlelib/pyshell.py index f3ee391ca006..dd6c997abc58 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