Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1cc56f4

Browse files
committed
Withable
1 parent 8730e92 commit 1cc56f4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,6 @@ class FileReader():
768768
return self.file.read()
769769
def __exit__(self, *args):
770770
self.file.close()
771-
print(f'FileReader closed {self.filename!r}')
772771
```
773772

774773
```python
@@ -777,7 +776,6 @@ class FileReader():
777776
>>> with FileReader('test.txt') as text:
778777
... print(text)
779778
Hello World!
780-
FileReader closed 'test.txt'
781779
```
782780

783781
### Copy

0 commit comments

Comments
 (0)