Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
gm-serializer
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gushitong
gm-serializer
Commits
03c344bd
Commit
03c344bd
authored
Aug 22, 2017
by
gushitong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix json.loads for py35
parent
7e8a2c97
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
__init__.py
gm_serializer/__init__.py
+1
-1
cache.py
gm_serializer/cache.py
+1
-1
No files found.
gm_serializer/__init__.py
View file @
03c344bd
__version__
=
'0.0.
8
'
__version__
=
'0.0.
9
'
__author__
=
'gushitong@gmei.com'
gm_serializer/cache.py
View file @
03c344bd
...
...
@@ -27,7 +27,7 @@ class RedisCache(_PoolMixin):
"""
key
=
"
%
s:
%
s"
%
(
self
.
prefix
,
str
(
item
))
obj
=
self
.
_client
.
get
(
key
)
return
json
.
loads
(
obj
)
if
obj
else
None
return
json
.
loads
(
obj
.
decode
()
)
if
obj
else
None
def
__setitem__
(
self
,
key
,
value
):
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment