Skip to content

Conversation

@usefulz
Copy link

@usefulz usefulz commented Dec 18, 2020

Update to #27 running under Python 3.8.5 on Ubuntu 20.04.1 LTS

cloudfail.py:177: DeprecationWarning: please use dns.resolver.Resolver.resolve() instead

Changed query() to resolve()

cloudfail.py:180: SyntaxWarning: "is not" with a literal. Did you mean "!="?
while choice is not 'y' and choice is not 'n':
cloudfail.py:180: SyntaxWarning: "is not" with a literal. Did you mean "!="?
while choice is not 'y' and choice is not 'n':
cloudfail.py:182: SyntaxWarning: "is" with a literal. Did you mean "=="?
if choice is 'y':

Changed the above "is not" to != and "is" to ==

Don't have a wildcarded cloudflare domain to check, but doesn't generate any further warnings

cloudfail.py:177: DeprecationWarning: please use dns.resolver.Resolver.resolve() instead

# Changed query() to resolve()

cloudfail.py:180: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  while choice is not 'y' and choice is not 'n':
cloudfail.py:180: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  while choice is not 'y' and choice is not 'n':
cloudfail.py:182: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if choice is 'y':

# Changed the above "is not" to != and "is" to ==

Don't have a wildcarded cloudflare domain to check, but doesn't generate any further warnings
@Zamanry
Copy link

Zamanry commented May 18, 2022

Independently confirmed to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants