mirror of
https://github.com/pajamian/Pastebin2cpaste.git
synced 2025-04-25 20:41:21 -05:00
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:
parent
c2c58d5fa2
commit
22eb243b30
@ -78,7 +78,7 @@ class Pastebin2cpaste(callbacks.Plugin):
|
|||||||
else:
|
else:
|
||||||
text = msg.args[1]
|
text = msg.args[1]
|
||||||
for url in utils.web.httpUrlRe.findall(text):
|
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
|
continue
|
||||||
pastebin = self.pastebins[utils.web.getDomain(url).lower()]
|
pastebin = self.pastebins[utils.web.getDomain(url).lower()]
|
||||||
if pastebin:
|
if pastebin:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user