aboutsummaryrefslogtreecommitdiffstats
path: root/torturetest.py
diff options
context:
space:
mode:
Diffstat (limited to 'torturetest.py')
-rwxr-xr-xtorturetest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/torturetest.py b/torturetest.py
index 9f5d86cc..944028f6 100755
--- a/torturetest.py
+++ b/torturetest.py
@@ -63,7 +63,7 @@ class TestSite:
"Send test mail to the site."
server = smtplib.SMTP("localhost")
fromaddr = "esr@thyrsus.com"
- if string.find(self.mailname, "@") > -1:
+ if self.mailname.find("@") > -1:
toaddr = self.mailname
else:
toaddr = "%s@%s" % (self.mailname, self.host)