Toggle navigation
Toggle navigation
This project
Loading...
Sign in
서승완
/
kappa
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Mitch Garnaat
2015-12-13 23:51:18 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ea8a793569274e957455833a4cf04791900d916b
ea8a7935
1 parent
d84c6009
Encode the JSON document coming out of dumps().
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
kappa/policy.py
kappa/policy.py
View file @
ea8a793
...
...
@@ -124,7 +124,7 @@ class Policy(object):
def
_check_md5
(
self
,
document
):
m
=
hashlib
.
md5
()
m
.
update
(
document
)
m
.
update
(
document
.
encode
(
'utf-8'
)
)
policy_md5
=
m
.
hexdigest
()
cached_md5
=
self
.
_context
.
get_cache_value
(
'policy_md5'
)
LOG
.
debug
(
'policy_md5:
%
s'
,
policy_md5
)
...
...
Please
register
or
login
to post a comment