From d3c933074988f19779162c1519ad977b483e0fd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Wed, 25 Dec 2024 14:49:20 +0100 Subject: [PATCH] Match statement, Logging --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cfa9dfd..b1cf2d2 100644 --- a/README.md +++ b/README.md @@ -2167,7 +2167,7 @@ match : ... parts=['/', 'home', user, *_] ... ) as p if p.name.lower().startswith('readme') and p.is_file(): ... print(f'{p.name} is a readme file that belongs to user {user}.') -'README.md is a readme file that belongs to user gto.' +README.md is a readme file that belongs to user gto. ``` @@ -2220,9 +2220,9 @@ log.basicConfig( >>> log.basicConfig() >>> log.root.handlers[0].setLevel('WARNING') >>> logger.critical('Running out of disk space.') -'CRITICAL:my_module:Running out of disk space.' +CRITICAL:my_module:Running out of disk space. >>> print(open('test.log').read()) -'2023-02-07 23:21:01,430 CRITICAL:my_module:Running out of disk space.' +2023-02-07 23:21:01,430 CRITICAL:my_module:Running out of disk space. ```