diff options
| author | Aarni Koskela <akx@iki.fi> | 2025-03-05 18:45:10 +0200 |
|---|---|---|
| committer | nessita <124304+nessita@users.noreply.github.com> | 2025-03-31 22:43:13 -0300 |
| commit | c972af69e2021b75b89d8bc47e214ef875bbdc06 (patch) | |
| tree | 7a454faf8b3e4fadd1a92ac37b9d1df19a5e3fcb /django/utils/autoreload.py | |
| parent | 6888375c53476011754f778deabc6cdbfa327011 (diff) | |
Refs #28909 -- Simplified code using unpacking generalizations.
Diffstat (limited to 'django/utils/autoreload.py')
| -rw-r--r-- | django/utils/autoreload.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/autoreload.py b/django/utils/autoreload.py index 7ffc61fc92..a620d0adb7 100644 --- a/django/utils/autoreload.py +++ b/django/utils/autoreload.py @@ -193,7 +193,7 @@ def common_roots(paths): # Turn the tree into a list of Path instances. def _walk(node, path): for prefix, child in node.items(): - yield from _walk(child, path + (prefix,)) + yield from _walk(child, [*path, prefix]) if not node: yield Path(*path) |
