mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-11-30 12:16:55 -05:00
browser: fix json separators
This commit is contained in:
parent
08bb09ff06
commit
5ee31cd879
1 changed files with 2 additions and 2 deletions
|
|
@ -256,7 +256,7 @@ class WebsockReceiverThread(threading.Thread):
|
|||
method="Page.handleJavaScriptDialog",
|
||||
params={"accept": accept},
|
||||
),
|
||||
separators=",:",
|
||||
separators=(",", ":"),
|
||||
)
|
||||
)
|
||||
|
||||
|
|
@ -363,7 +363,7 @@ class Browser:
|
|||
def send_to_chrome(self, suppress_logging=False, **kwargs):
|
||||
msg_id = next(self._command_id)
|
||||
kwargs["id"] = msg_id
|
||||
msg = json.dumps(kwargs, separators=",:")
|
||||
msg = json.dumps(kwargs, separators=(",", ":"))
|
||||
self.logger.debug(
|
||||
"sending message",
|
||||
websock=self.websock,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue