Commit 131f397
committed
fix: Workaround for uv/uvx bug
The uv/uvx tools break scripts that contain a __future__ import by
injecting a multiline string infront of it. Future imports are
very limited on where they can appear.
See astral-sh/uv#6489
We cannot remove the __future__ import in bottle-0.13 because Python 2.7 support
still depends on it, but we can move it above the docstring, so the uv/uvx
modifications no longer trigger a SyntaxError.
fix #14861 parent b03fb13 commit 131f397
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | | - | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments