mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Merge Py Idle changes:
Rev 1.4 fdrake Use string.ascii_letters instead of string.letters (SF bug #226706) Rev 1.5 doerwalter (string methods)
This commit is contained in:
parent
2a5e350265
commit
5fab9c67eb
1 changed files with 2 additions and 2 deletions
|
@ -251,7 +251,7 @@ class InsertCommand(Command):
|
|||
self.chars = self.chars + cmd.chars
|
||||
return 1
|
||||
|
||||
alphanumeric = string.letters + string.digits + "_"
|
||||
alphanumeric = string.ascii_letters + string.digits + "_"
|
||||
|
||||
def classify(self, c):
|
||||
if c in self.alphanumeric:
|
||||
|
@ -311,7 +311,7 @@ class CommandSequence(Command):
|
|||
strs = []
|
||||
for cmd in self.cmds:
|
||||
strs.append(" " + `cmd`)
|
||||
return s + "(\n" + string.join(strs, ",\n") + "\n)"
|
||||
return s + "(\n" + ",\n".join(strs) + "\n)"
|
||||
|
||||
def __len__(self):
|
||||
return len(self.cmds)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue