Skip to content

Commit

Permalink
fix python 2 compatible helpers for nested unicode (#19)
Browse files Browse the repository at this point in the history
BUG FIXES:

- Fix python 2 compatible helpers for nested CJK charset
  • Loading branch information
ucloud-bot authored Sep 22, 2020
1 parent 1e8f87b commit 90fb431
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/test_core/test_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
({"foo": True}, {"foo": "true"}),
({"foo": False}, {"foo": "false"}),
({"IP": ["127.0.0.1"]}, {"IP.0": "127.0.0.1"}),
({"TemplateParams": [u"中文"]}, {"TemplateParams.0": u"中文"}),
({"IP": ["foo", "bar"]}, {"IP.0": "foo", "IP.1": "bar"}),
({"IP": [{"foo": "bar"}]}, {"IP.0.foo": "bar"}),
],
Expand Down
2 changes: 2 additions & 0 deletions ucloud/core/typesystem/encoder.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# -*- coding: utf-8 -*-

from ucloud.core.utils.compat import str


def encode(d):
result = {}
Expand Down
2 changes: 1 addition & 1 deletion ucloud/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-

version = "0.9.1"
version = "0.9.2"

0 comments on commit 90fb431

Please sign in to comment.