Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeprecationWarning: .text & .listdir are deprecated #35044

Open
Tracked by #32888
irtazaakram opened this issue Jun 27, 2024 · 7 comments
Open
Tracked by #32888

DeprecationWarning: .text & .listdir are deprecated #35044

irtazaakram opened this issue Jun 27, 2024 · 7 comments
Assignees
Labels
good first issue A good task for a newcomer to start with help wanted Ready to be picked up by anyone in the community

Comments

@irtazaakram
Copy link
Member

irtazaakram commented Jun 27, 2024

.text() is deprecated use read_text instead.

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

js_file_text = get_javascript_i18n_file_path('done', 'tr').text()


.listdir is deprecated; use iterdir instead.

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

for locale_dir in xblock_conf_locale_dir.listdir():

@irtazaakram irtazaakram added help wanted Ready to be picked up by anyone in the community good first issue A good task for a newcomer to start with labels Jun 27, 2024
@irtazaakram irtazaakram changed the title DeprecationWarning: .text is deprecated DeprecationWarning: .text & .listdir are deprecated Jun 27, 2024
@coderight1
Copy link

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

@farhan
Copy link
Contributor

farhan commented Aug 29, 2024

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

@coderight1 coderight1 removed their assignment Aug 29, 2024
@coderight1
Copy link

Hi @farhan, you can work on it.

@Mritunjaii
Copy link

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
Copy link
Contributor

farhan commented Sep 12, 2024

@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
Copy link

Mritunjaii commented Sep 12, 2024

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

@Mritunjaii
Copy link

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

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue A good task for a newcomer to start with help wanted Ready to be picked up by anyone in the community
Projects
None yet
Development

No branches or pull requests

4 participants