Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -131,7 +131,7 @@ class Function(object): | ... | @@ -131,7 +131,7 @@ class Function(object): |
131 | relroot = os.path.abspath(lambda_dir) | 131 | relroot = os.path.abspath(lambda_dir) |
132 | with zipfile.ZipFile(zipfile_name, 'w', | 132 | with zipfile.ZipFile(zipfile_name, 'w', |
133 | compression=zipfile.ZIP_DEFLATED) as zf: | 133 | compression=zipfile.ZIP_DEFLATED) as zf: |
134 | - for root, dirs, files in os.walk(lambda_dir): | 134 | + for root, _, files in os.walk(lambda_dir): |
135 | zf.write(root, os.path.relpath(root, relroot)) | 135 | zf.write(root, os.path.relpath(root, relroot)) |
136 | for filename in files: | 136 | for filename in files: |
137 | filepath = os.path.join(root, filename) | 137 | filepath = os.path.join(root, filename) |
... | @@ -248,7 +248,7 @@ class Function(object): | ... | @@ -248,7 +248,7 @@ class Function(object): |
248 | return response['Versions'] | 248 | return response['Versions'] |
249 | 249 | ||
250 | def create_alias(self, name, description, version=None): | 250 | def create_alias(self, name, description, version=None): |
251 | - LOG.debug('creating alias of ', self.name) | 251 | + LOG.debug('creating alias of %s', self.name) |
252 | if version is None: | 252 | if version is None: |
253 | version = self.version | 253 | version = self.version |
254 | try: | 254 | try: | ... | ... |
-
Please register or login to post a comment