Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ae1f3bd

Browse files
committed
rename the global IdleConfParser object from IdleConf to idleconf
standard usage is now from IdleConf import idleconf
1 parent 6b3edf0 commit ae1f3bd

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Tools/idle/EditorWindow.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import tkMessageBox
99
import idlever
1010
import WindowList
11-
from IdleConf import IdleConf
11+
from IdleConf import idleconf
1212

1313
# The default tab setting for a Text widget, in average-width characters.
1414
TK_TABWIDTH_DEFAULT = 8
@@ -94,8 +94,8 @@ class EditorWindow:
9494
vars = {}
9595

9696
def __init__(self, flist=None, filename=None, key=None, root=None):
97-
edconf = IdleConf.getsection('EditorWindow')
98-
coconf = IdleConf.getsection('Colors')
97+
edconf = idleconf.getsection('EditorWindow')
98+
coconf = idleconf.getsection('Colors')
9999
self.flist = flist
100100
root = root or flist.root
101101
self.root = root
@@ -530,7 +530,7 @@ def load_standard_extensions(self):
530530
traceback.print_exc()
531531

532532
def get_standard_extension_names(self):
533-
return IdleConf.getextensions()
533+
return idleconf.getextensions()
534534

535535
def load_extension(self, name):
536536
mod = __import__(name, globals(), locals(), [])

0 commit comments

Comments
 (0)