]> granicus.if.org Git - python/commitdiff
import sys before we use it on line 9 (GH-828) (GH-833)
authorMariatta <Mariatta@users.noreply.github.com>
Mon, 27 Mar 2017 02:53:37 +0000 (19:53 -0700)
committerGitHub <noreply@github.com>
Mon, 27 Mar 2017 02:53:37 +0000 (19:53 -0700)
(cherry picked from commit 0579e81f30d00da562f021760d5b6a9c35186520)

Lib/idlelib/pyshell.py

index f3ee391ca006fc8b44ef29c7e28540cff5fb500a..dd6c997abc587bb86d88259627041721d3ea398f 100755 (executable)
@@ -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