Skip to content

Commit dabd9b9

Browse files
committed
Logging
1 parent 480f6db commit dabd9b9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2167,7 +2167,7 @@ match <object/expression>:
21672167
... parts=['/', 'home', user, *_]
21682168
... ) as p if p.name.lower().startswith('readme') and p.is_file():
21692169
... print(f'{p.name} is a readme file that belongs to user {user}.')
2170-
README.md is a readme file that belongs to user gto.
2170+
'README.md is a readme file that belongs to user gto.'
21712171
```
21722172

21732173

@@ -2220,9 +2220,9 @@ log.basicConfig(
22202220
>>> log.basicConfig()
22212221
>>> log.root.handlers[0].setLevel('WARNING')
22222222
>>> logger.critical('Running out of disk space.')
2223-
CRITICAL:my_module:Running out of disk space.
2223+
'CRITICAL:my_module:Running out of disk space.'
22242224
>>> print(open('test.log').read())
2225-
2023-02-07 23:21:01,430 CRITICAL:my_module:Running out of disk space.
2225+
'2023-02-07 23:21:01,430 CRITICAL:my_module:Running out of disk space.'
22262226
```
22272227

22282228

0 commit comments

Comments
 (0)