Use "not" instead of "!"

Python doesn't have a "!" operator like every other language on the planet.
Instead it has "not".
This commit is contained in:
Peter Ajamian 2020-09-09 17:41:51 +12:00
parent c2c58d5fa2
commit 22eb243b30

View File

@ -78,7 +78,7 @@ class Pastebin2cpaste(callbacks.Plugin):
else:
text = msg.args[1]
for url in utils.web.httpUrlRe.findall(text):
if ! utils.web.getDomain(url).lower() in self.pastebins:
if not utils.web.getDomain(url).lower() in self.pastebins:
continue
pastebin = self.pastebins[utils.web.getDomain(url).lower()]
if pastebin: