import socket
import os
import time
-import string
def missing_ok(str):
try:
print all_host_names
for name in all_host_names:
- if string.find(name, '.'):
+ if name.find('.'):
break
else:
print 'FQDN not found'
# Sanity checker for time.strftime
-import time, calendar, sys, string, os, re
+import time, calendar, sys, os, re
from test_support import verbose
def main():
if verbose:
print "Strftime test, platform: %s, Python version: %s" % \
- (sys.platform, string.split(sys.version)[0])
+ (sys.platform, sys.version.split()[0])
for e in expectations:
try:
import zlib
import sys
import imp
-import string
try:
t = imp.find_module('test_zlib')
for i in range(0, len(buf), 256):
bufs.append(co.compress(buf[i:i+256]))
bufs.append(co.flush())
-combuf = string.join(bufs, '')
+combuf = ''.join(bufs)
decomp1 = zlib.decompress(combuf, -12, -5)
if decomp1 != buf:
for i in range(0, len(combuf), 128):
bufs.append(deco.decompress(combuf[i:i+128]))
bufs.append(deco.flush())
-decomp2 = string.join(buf, '')
+decomp2 = ''.join(buf)
if decomp2 != buf:
print "decompressobj with init options failed"
else:
__all__ = ["dom", "parsers", "sax"]
-import string
-__version__ = string.split("$Revision$")[1]
-del string
+__version__ = "$Revision$".split()[1]
_MINIMUM_XMLPLUS_VERSION = (0, 6, 1)