summaryrefslogtreecommitdiff
path: root/django/utils/autoreload.py
diff options
context:
space:
mode:
authorAarni Koskela <akx@iki.fi>2025-03-05 18:45:10 +0200
committernessita <124304+nessita@users.noreply.github.com>2025-03-31 22:43:13 -0300
commitc972af69e2021b75b89d8bc47e214ef875bbdc06 (patch)
tree7a454faf8b3e4fadd1a92ac37b9d1df19a5e3fcb /django/utils/autoreload.py
parent6888375c53476011754f778deabc6cdbfa327011 (diff)
Refs #28909 -- Simplified code using unpacking generalizations.
Diffstat (limited to 'django/utils/autoreload.py')
-rw-r--r--django/utils/autoreload.py2
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)