Fix some remaining issues with WebHook key types in payloads.
Review Request #10348 — Created Dec. 5, 2018 and submitted
A recent change fixed several type-related issues in WebHook payloads,
butstr
types for keys were still problematic. This change addresses
this, and at the same time prevents future issues with subclasses of
primitive types,OrderedDict
s, and byte strings containing Unicode
content. It also keeps order preserved for dictionaries, which helps
with consistent payloads (useful for testing).
Unit tests pass.
- Change Summary:
-
Fixed an alignment issue.
- Commit:
-
7a73abcf2c6940f0dc20b2329895f8a533ff07ede44f1cec54c8efd37e397d4b61649e77b564c379
Checks run (2 succeeded)
flake8
passed.
JSHint
passed.