Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Lib/idlelib/TreeWidget.py

    r2 r391  
    1919import imp
    2020
    21 import ZoomHeight
    22 from configHandler import idleConf
     21from idlelib import ZoomHeight
     22from idlelib.configHandler import idleConf
    2323
    2424ICONDIR = "Icons"
     
    398398        except os.error:
    399399            return []
    400         names.sort(lambda a, b: cmp(os.path.normcase(a), os.path.normcase(b)))
     400        names.sort(key = os.path.normcase)
    401401        sublist = []
    402402        for name in names:
     
    410410class ScrolledCanvas:
    411411    def __init__(self, master, **opts):
    412         if not opts.has_key('yscrollincrement'):
     412        if 'yscrollincrement' not in opts:
    413413            opts['yscrollincrement'] = 17
    414414        self.master = master
     
    453453
    454454def test():
    455     import PyShell
     455    from idlelib import PyShell
    456456    root = Toplevel(PyShell.root)
    457457    root.configure(bd=0, bg="yellow")
Note: See TracChangeset for help on using the changeset viewer.