Skip to content

bpo-35202: Remove unused imports in idle lib package #10438

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Lib/idlelib/codecontext.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from sys import maxsize as INFINITY

import tkinter
from tkinter.constants import TOP, LEFT, X, W, SUNKEN
from tkinter.constants import TOP, X, SUNKEN

from idlelib.config import idleConf

Expand Down
1 change: 0 additions & 1 deletion Lib/idlelib/filelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ def _test(): # TODO check and convert to htest
from tkinter import Tk
from idlelib.editor import fixwordbreaks
from idlelib.run import fix_scaling
import sys
root = Tk()
fix_scaling(root)
fixwordbreaks(root)
Expand Down
1 change: 0 additions & 1 deletion Lib/idlelib/idle_test/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
Much of IdleConf is also exercised by ConfigDialog and test_configdialog.
"""
from idlelib import config
import copy
import sys
import os
import tempfile
Expand Down
1 change: 0 additions & 1 deletion Lib/idlelib/idle_test/test_config_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from idlelib import config_key
from test.support import requires
import sys
import unittest
from tkinter import Tk
from idlelib.idle_test.mock_idle import Func
Expand Down
1 change: 0 additions & 1 deletion Lib/idlelib/idle_test/test_rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from idlelib import rpc
import unittest

import marshal


class CodePicklerTest(unittest.TestCase):
Expand Down
1 change: 0 additions & 1 deletion Lib/idlelib/pyparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
_chew_ordinaryre - non-special characters.
"""
import re
import sys

# Reason last statement is continued (or C_NONE if it's not).
(C_NONE, C_BACKSLASH, C_STRING_FIRST_LINE,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove unused imports from lib/idlelib