]> git.madduck.net Git - etc/vim.git/blob - tests/data/py_310/remove_newline_after_match.py

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

f7bcfbf27a232a17f8c4fcd2f0b9c433ca7f5d8c
[etc/vim.git] / tests / data / py_310 / remove_newline_after_match.py
1 def http_status(status):
2
3     match status:
4
5         case 400:
6
7             return "Bad request"
8
9         case 401:
10
11             return "Unauthorized"
12
13         case 403:
14
15             return "Forbidden"
16
17         case 404:
18
19             return "Not found"
20
21 # output
22 def http_status(status):
23     match status:
24         case 400:
25             return "Bad request"
26
27         case 401:
28             return "Unauthorized"
29
30         case 403:
31             return "Forbidden"
32
33         case 404:
34             return "Not found"