Skip to content

Commit a81781b

Browse files
committed
Give a few variables better names
Thanks to @dav3r for pointing this out. I was using the names I saw in the python socket library source code, but they needed improvement.
1 parent 7bb1e7e commit a81781b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

trustymail/trustymail.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,11 @@ def starttls_scan(domain, smtp_timeout, smtp_localhost, smtp_ports, smtp_cache):
173173
# To get around this I look up the A record and use
174174
# that instead of the hostname in DNS when I call
175175
# smtp_connection.connect().
176-
ans = socket.getaddrinfo(
176+
addr_info = socket.getaddrinfo(
177177
mail_server, port, socket.AF_INET, socket.SOCK_STREAM
178178
)
179-
sa = ans[0][4]
180-
mail_server_ip_address = sa[0]
179+
socket_address = addr_info[0][4]
180+
mail_server_ip_address = socket_address[0]
181181

182182
# Try to connect. This will tell us if something is
183183
# listening.

0 commit comments

Comments
 (0)