diff --git a/src/rpcclient/rpcclient/darwin/cfpreferences.py b/src/rpcclient/rpcclient/darwin/cfpreferences.py index 86c7e0ed..eb807d83 100644 --- a/src/rpcclient/rpcclient/darwin/cfpreferences.py +++ b/src/rpcclient/rpcclient/darwin/cfpreferences.py @@ -45,7 +45,7 @@ def get_values(self, application_id: str, username: str = kCFPreferencesCurrentU result[k] = self.get_value(k, application_id, username, hostname) return result - def set(self, key: str, value: str, application_id: str, username: str = kCFPreferencesCurrentUser, + def set(self, key: str, value, application_id: str, username: str = kCFPreferencesCurrentUser, hostname: str = kCFPreferencesCurrentHost): self._client.symbols.CFPreferencesSetValue(self._client.cf(key), self._client.cf(value), self._client.cf(application_id), self._client.cf(username), diff --git a/src/rpcclient/tests/test_core_foundation_types.py b/src/rpcclient/tests/test_core_foundation_types.py index 3482add2..82e57dce 100644 --- a/src/rpcclient/tests/test_core_foundation_types.py +++ b/src/rpcclient/tests/test_core_foundation_types.py @@ -1,4 +1,5 @@ import datetime + import pytest