diff --git a/modules/sasl/__init__.py b/modules/sasl/__init__.py index 2861d482..e3e55dcc 100644 --- a/modules/sasl/__init__.py +++ b/modules/sasl/__init__.py @@ -3,9 +3,7 @@ from src import ModuleManager, utils from . import scram def _validate(self, s): - mechanism = s - if " " in s: - mechanism, arguments = s.split(" ", 1) + mechanism, _, arguments = s.partition(" ") return {"mechanism": mechanism, "args": arguments} def _scram_nonce():