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-10-29 22:20:47 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
75651bf1f9b300ed27f576230ec7ec72bdb7fdcb
75651bf1
1 parent
6dda9108
Fixing a few small style issues.
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
kappa/function.py
kappa/function.py
View file @
75651bf
...
...
@@ -131,7 +131,7 @@ class Function(object):
relroot
=
os
.
path
.
abspath
(
lambda_dir
)
with
zipfile
.
ZipFile
(
zipfile_name
,
'w'
,
compression
=
zipfile
.
ZIP_DEFLATED
)
as
zf
:
for
root
,
dirs
,
files
in
os
.
walk
(
lambda_dir
):
for
root
,
_
,
files
in
os
.
walk
(
lambda_dir
):
zf
.
write
(
root
,
os
.
path
.
relpath
(
root
,
relroot
))
for
filename
in
files
:
filepath
=
os
.
path
.
join
(
root
,
filename
)
...
...
@@ -248,7 +248,7 @@ class Function(object):
return
response
[
'Versions'
]
def
create_alias
(
self
,
name
,
description
,
version
=
None
):
LOG
.
debug
(
'creating alias of '
,
self
.
name
)
LOG
.
debug
(
'creating alias of
%
s
'
,
self
.
name
)
if
version
is
None
:
version
=
self
.
version
try
:
...
...
Please
register
or
login
to post a comment