Remove custom enum parsing

Python enums can already be parsed out-of-the-box.
This commit is contained in:
Lonami Exo
2022-01-16 12:06:42 +01:00
parent 8c9ee3f731
commit a95393648f
4 changed files with 20 additions and 42 deletions

View File

@@ -199,7 +199,7 @@ def init(
enums.ConnectionMode.FULL: transports.Full(),
enums.ConnectionMode.INTERMEDIATE: transports.Intermediate(),
enums.ConnectionMode.ABRIDGED: transports.Abridged(),
}[enums.parse_conn_mode(connection)]
}[enums.ConnectionMode(connection)]
init_proxy = None
# Used on connection. Capture the variables in a lambda since