We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c92cc86 commit fc208d1Copy full SHA for fc208d1
1 file changed
python/rpdk/go/codegen.py
@@ -239,14 +239,15 @@ def generate(self, project: Project):
239
@staticmethod
240
def pre_package(project: Project):
241
# zip the Go build output - it's all needed to execute correctly
242
- with TemporaryFile("w+b") as f:
243
- with zipfile.ZipFile(f, mode="w") as zip_file:
244
- for path in (project.root / "bin").iterdir():
245
- if path.is_file():
246
- zip_file.write(path.resolve(), path.name)
247
- f.seek(0)
248
-
249
- return f
+ f = TemporaryFile("w+b") # pylint: disable=R1732
+
+ with zipfile.ZipFile(f, mode="w") as zip_file:
+ for path in (project.root / "bin").iterdir():
+ if path.is_file():
+ zip_file.write(path.resolve(), path.name)
+ f.seek(0)
250
+ return f
251
252
253
def _find_exe(project: Project):
0 commit comments