From c159dd6032c031dbf7c6617c1baf6e7b516dec13 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 20 Dec 2022 14:15:17 -0600 Subject: [PATCH] docs: updates some of the examples --- examples/cli.py | 5 +---- examples/sys_path.py | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/examples/cli.py b/examples/cli.py index 42838c7..540daae 100755 --- a/examples/cli.py +++ b/examples/cli.py @@ -18,10 +18,7 @@ def hello(name: str): @app.command() def goodbye(name: str, formal: bool = False): - if formal: - print(f"Goodbye Ms. {name}. Have a good day.") - else: - print(f"Bye {name}!") + print(f"Bye {name}") if __name__ == "__main__": diff --git a/examples/sys_path.py b/examples/sys_path.py index 73f2641..9fb4d7f 100644 --- a/examples/sys_path.py +++ b/examples/sys_path.py @@ -17,4 +17,4 @@ f = Figlet(font="slant") print(f.renderText("Viv isn't venv!")) print("Sys path:") -print("\n".join(sys.path)) +print("\n".join(sorted(set(sys.path))))