From 22eb243b3050cea6cb8099c649c4a11bc2f58bcd Mon Sep 17 00:00:00 2001 From: Peter Ajamian Date: Wed, 9 Sep 2020 17:41:51 +1200 Subject: [PATCH] Use "not" instead of "!" Python doesn't have a "!" operator like every other language on the planet. Instead it has "not". --- plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.py b/plugin.py index 71f7afe..b19c904 100644 --- a/plugin.py +++ b/plugin.py @@ -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: