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
LaiQiang Ding
2016-06-28 03:13:51 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c2a56d549be718f3a8bb9c934ecfa33f707c0655
c2a56d54
1 parent
ff1035ea
fix #73
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
kappa/context.py
kappa/context.py
View file @
c2a56d5
...
...
@@ -97,7 +97,10 @@ class Context(object):
yaml
.
dump
(
self
.
cache
,
fp
)
def
get_cache_value
(
self
,
key
):
return
self
.
cache
.
setdefault
(
self
.
environment
,
dict
())
.
get
(
key
)
ret
=
self
.
cache
.
setdefault
(
self
.
environment
,
dict
())
.
get
(
key
)
if
ret
is
not
None
:
return
ret
.
decode
(
'utf8'
)
return
ret
def
set_cache_value
(
self
,
key
,
value
):
self
.
cache
.
setdefault
(
...
...
Please
register
or
login
to post a comment