Pārlūkot izejas kodu

apparently the one line if statement is really just a ternary operator?

tags/v0.1^2
Emalee pirms 12 gadiem
vecāks
revīzija
ad1ff720b4
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      earwigbot/commands/trout.py

+ 1
- 1
earwigbot/commands/trout.py Parādīt failu

@@ -38,7 +38,7 @@ class Trout(Command):
def process(self, data):
animal = data.command
target = " ".join(data.args) or data.nick
target = "himself" if target == "yourself"
target = "himself" if target == "yourself" else target

normal = normalize("NFKD", target.decode("utf8")).lower()
if normal in self.exceptions:


Notiek ielāde…
Atcelt
Saglabāt