Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
Django-Redis-Cache
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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shared
Django-Redis-Cache
Commits
a768c616
Commit
a768c616
authored
Oct 09, 2009
by
blackbrrr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pickle.loads is now given a string instead of unicode
parent
a2afc3cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
cache.py
redis_cache/cache.py
+6
-1
No files found.
redis_cache/cache.py
View file @
a768c616
...
...
@@ -51,8 +51,13 @@ class CacheClass(BaseCache):
if
value
is
None
:
return
default
else
:
# picke doesn't want a unicode!
value
=
smart_str
(
value
)
# hydrate that pickle
value
=
pickle
.
loads
(
value
)
if
isinstance
(
val
,
basestring
):
if
isinstance
(
value
,
basestring
):
return
smart_unicode
(
value
)
else
:
return
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