Commit 2c5ccb11 authored by Kurt B. Kaiser's avatar Kurt B. Kaiser

Merge Py Idle changes

Rev 1.13 (string methods)
parent c7c42233
......@@ -12,7 +12,6 @@ XXX TO DO:
import os
import sys
import string
import pyclbr
# XXX Patch pyclbr with dummies if it's vintage Python 1.5.2:
......@@ -117,7 +116,7 @@ class ModuleBrowserTreeItem(TreeItem):
if sup.module != cl.module:
sname = "%s.%s" % (sup.module, sname)
supers.append(sname)
s = s + "(%s)" % string.join(supers, ", ")
s = s + "(%s)" % ", ".join(supers)
items.append((cl.lineno, s))
self.classes[s] = cl
items.sort()
......
import time
import string
import re
import keyword
from Tkinter import *
......@@ -14,7 +13,7 @@ DEBUG = 0
def any(name, list):
return "(?P<%s>" % name + string.join(list, "|") + ")"
return "(?P<%s>" % name + "|".join(list) + ")"
def make_pat():
kw = r"\b" + any("KEYWORD", keyword.kwlist) + r"\b"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment