]> git.madduck.net Git - etc/vim.git/blob - tests/data/cases/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:

Report all stacktraces in verbose mode (#3938)
[etc/vim.git] / tests / data / cases / remove_newline_after_match.py
1 # flags: --minimum-version=3.10
2 def http_status(status):
3
4     match status:
5
6         case 400:
7
8             return "Bad request"
9
10         case 401:
11
12             return "Unauthorized"
13
14         case 403:
15
16             return "Forbidden"
17
18         case 404:
19
20             return "Not found"
21
22 # output
23 def http_status(status):
24     match status:
25         case 400:
26             return "Bad request"
27
28         case 401:
29             return "Unauthorized"
30
31         case 403:
32             return "Forbidden"
33
34         case 404:
35             return "Not found"