##// END OF EJS Templates
Remove string module use from external modules.
Thomas Kluyver -
Show More
@@ -75,7 +75,6 b' each time the instance is evaluated with str(instance). For example:'
75 __author__ = 'Ka-Ping Yee <ping@lfw.org>'
75 __author__ = 'Ka-Ping Yee <ping@lfw.org>'
76 __license__ = 'MIT'
76 __license__ = 'MIT'
77
77
78 import string
79 import sys
78 import sys
80 from tokenize import tokenprog
79 from tokenize import tokenprog
81
80
@@ -66,7 +66,6 b' $Id: pexpect.py 507 2007-12-27 02:40:52Z noah $'
66 try:
66 try:
67 import os, sys, time
67 import os, sys, time
68 import select
68 import select
69 import string
70 import re
69 import re
71 import struct
70 import struct
72 import resource
71 import resource
@@ -1778,8 +1777,7 b' def which (filename):'
1778
1777
1779 # Oddly enough this was the one line that made Pexpect
1778 # Oddly enough this was the one line that made Pexpect
1780 # incompatible with Python 1.5.2.
1779 # incompatible with Python 1.5.2.
1781 #pathlist = p.split (os.pathsep)
1780 pathlist = p.split(os.pathsep)
1782 pathlist = string.split (p, os.pathsep)
1783
1781
1784 for path in pathlist:
1782 for path in pathlist:
1785 f = os.path.join(path, filename)
1783 f = os.path.join(path, filename)
General Comments 0
You need to be logged in to leave comments. Login now