Skip to content

Commit

Permalink
Switched to fstring everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
bardurc authored Aug 14, 2020
1 parent 72aa101 commit 2919def
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions isDomainSpoofable.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def check_spf(domain):
def check_dmarc(domain):
dmarc = None
p_policy = None
dmarc_domain = '_dmarc.' + domain
dmarc_domain = f'_dmarc.{domain}'
try:
for r in dns.resolver.resolve(dmarc_domain, 'TXT'):
# convert object to string and strip '"'
Expand Down Expand Up @@ -48,7 +48,7 @@ def get_dmarc_policy(dmarc):
result = []
data = yaml.load(f, Loader=yaml.FullLoader)
for k, v in data.items():
print('Analysing %s' % (v))
print(f'Analysing {v}')
spf = check_spf(v)
if spf:
has_spf = 'Yes'
Expand Down

0 comments on commit 2919def

Please sign in to comment.