From c6443014f5d7f4d718231bd60632b3cb712c3573 Mon Sep 17 00:00:00 2001 From: Rakib Hossain Date: Sun, 4 Aug 2024 11:43:38 +0600 Subject: [PATCH] Remove explicit app_id format validator I've never seen such validation on PHP or event on Go client. The same app_id which works fine on other clients, but not on python due to this exceptional checking. --- pusher/client.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pusher/client.py b/pusher/client.py index dfd7bfc..f3c8122 100644 --- a/pusher/client.py +++ b/pusher/client.py @@ -8,7 +8,7 @@ import six -from pusher.util import ensure_text, ensure_binary, app_id_re +from pusher.util import ensure_text, ensure_binary from pusher.crypto import parse_master_key @@ -35,9 +35,6 @@ def __init__( backend = RequestsBackend self._app_id = ensure_text(app_id, "app_id") - if not app_id_re.match(self._app_id): - raise ValueError("Invalid app id") - self._key = ensure_text(key, "key") self._secret = ensure_text(secret, "secret")