1
0
mirror of https://github.com/httpie/cli.git synced 2025-08-10 22:42:05 +02:00

Start using dict comprehensions

This commit is contained in:
Jakub Roztocil
2017-12-28 18:15:17 +01:00
parent ec899d70b7
commit 7f5fd130c5
5 changed files with 11 additions and 12 deletions

View File

@@ -25,8 +25,8 @@ class ExitStatus:
ERROR_HTTP_5XX = 5
EXIT_STATUS_LABELS = dict(
(value, key)
EXIT_STATUS_LABELS = {
value: key
for key, value in ExitStatus.__dict__.items()
if key.isupper()
)
}