Skip to content

Commit 2d9d0c4

Browse files
committed
make listed_animal more dynamic rather than hardcoded
1 parent 60cfbdf commit 2d9d0c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

implement-cowsay/cow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import sys
33
import argparse
44

5-
listed_animals = [listed_animal for listed_animal in dir(cowsay) if callable(getattr(cowsay, listed_animal)) and not listed_animal.startswith("__") and listed_animal not in ["draw", "func", "get_output_string", "CowsayError"]]
5+
listed_animals = cowsay.char_names;
66

77
parser = argparse.ArgumentParser(
88
prog="cow",

0 commit comments

Comments
 (0)