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

fnmatch.translate() already translates globs for us. #6668

Merged
merged 1 commit into from
Mar 9, 2021

Conversation

thedrow
Copy link
Member

@thedrow thedrow commented Mar 9, 2021

Note: Before submitting this pull request, please review our contributing
guidelines
.

Description

There's no longer a need for our faulty implementation of glob_to_re since the functionality is provided in the fnmatch standard module.
This incidently, fixes #5646.

There's no longer a need for our faulty implementation of glob_to_re since the functionality is provided in the fnmatch standard module.
This incidently, fixes #5646.
@thedrow thedrow added this to In progress in Celery 5.1.0 via automation Mar 9, 2021
@thedrow thedrow added this to the 5.1.0 milestone Mar 9, 2021
@thedrow thedrow self-assigned this Mar 9, 2021
@thedrow thedrow requested a review from a team March 9, 2021 14:45
@codecov
Copy link

codecov bot commented Mar 9, 2021

Codecov Report

Merging #6668 (c46715c) into master (f091bab) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6668      +/-   ##
==========================================
- Coverage   70.47%   70.46%   -0.01%     
==========================================
  Files         138      138              
  Lines       16498    16495       -3     
  Branches     2074     2073       -1     
==========================================
- Hits        11627    11624       -3     
  Misses       4669     4669              
  Partials      202      202              
Flag Coverage Δ
unittests 70.46% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
celery/app/routes.py 95.65% <100.00%> (-0.14%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f091bab...1ee80d2. Read the comment docs.

Copy link
Member

@ahopkins ahopkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems simple enough.

Celery 5.1.0 automation moved this from In progress to Reviewer approved Mar 9, 2021
@thedrow thedrow merged commit 1ff7059 into master Mar 9, 2021
Celery 5.1.0 automation moved this from Reviewer approved to Done Mar 9, 2021
@thedrow thedrow deleted the fix-routing-with-globs branch March 9, 2021 16:36
jeyrce pushed a commit to jeyrce/celery that referenced this pull request Aug 25, 2021
There's no longer a need for our faulty implementation of glob_to_re since the functionality is provided in the fnmatch standard module.
This incidently, fixes celery#5646.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Celery 5.1.0
  
Done
Development

Successfully merging this pull request may close these issues.

glob behavior in task_routes interprets * as one or more characters, not zero or more
2 participants