openedx / edx-platform

The Open edX LMS & Studio, powering education sites around the world!
https://openedx.org
GNU Affero General Public License v3.0
7.45k stars 3.88k forks source link

DeprecationWarning: .text & .listdir are deprecated #35044

Open irtazaakram opened 5 months ago

irtazaakram commented 5 months ago

.text() is deprecated use read_text instead.

Reference: https://github.com/jaraco/path/blob/34634dc494d8385c0b40a3bedcce5458983b3a5d/path/__init__.py#L869

https://github.com/openedx/edx-platform/blob/15e2834825d4354b9e71e761b95fdcdffa1d1015/common/djangoapps/xblock_django/tests/test_commands.py#L67


.listdir is deprecated; use iterdir instead.

Reference: https://github.com/jaraco/path/blob/34634dc494d8385c0b40a3bedcce5458983b3a5d/path/__init__.py#L557

https://github.com/openedx/edx-platform/blob/15e2834825d4354b9e71e761b95fdcdffa1d1015/common/djangoapps/xblock_django/translation.py#L104

coderight1 commented 4 months ago

Hi @irtazaakram please assign me , want to work on it.

farhan commented 2 months ago

@coderight1 Can you please update the status? are you working on it?

coderight1 commented 2 months ago

Hi @farhan, you can work on it.

Mritunjaii commented 2 months ago

Hello @feanil @irtazaakram is this issue still open?? Can I work on this issue?

And I'm quite new to open source so if I breach any common practices or make any mistakes, please correct me. I'm here to learn and add value to this repo.

farhan commented 2 months ago

@Mritunjaii Yes its still open, you can work on it. It's very basic so will be a good task for you to start

Mritunjaii commented 2 months ago

@farhan @irtazaakram I have made the changes,please review them and update me

Mritunjaii commented 2 months ago

@farhan @irtazaakram I have made the changes,please review them and update me

image