[issue47217] adding name to BZ2File

2022-04-04 Thread Marin M
Change by Marin M : -- keywords: +patch pull_requests: +30373 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32311 ___ Python tracker ___

[issue47217] adding name to BZ2File

2022-04-04 Thread Marin M
New submission from Marin M : BZ2File doesn't have attribute name, unlike GzipFile which has it. Trying to access that attribute results in error. PR is ready with code changes and tests which mimics what is already available for GzipFile (e.g. we do not take name from BytesIO() objects becau