We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4f6047 commit d84c2f4Copy full SHA for d84c2f4
setup.py
@@ -17,6 +17,7 @@
17
from distutils.core import setup, Command
18
import os, shutil, tarfile
19
import splunklib
20
+from contextlib import closing
21
22
def run_test_suite():
23
try:
@@ -94,7 +95,7 @@ def run(self):
94
95
modinput_dir = os.path.join(splunklib_dir, "modularinput")
96
97
for app in app_names:
- with tarfile.open(os.path.join("build", app + ".spl"), "w") as spl:
98
+ with closing(tarfile.open(os.path.join("build", app + ".spl"), "w")) as spl:
99
spl.add(
100
os.path.join("examples", app, app + ".py"),
101
arcname=os.path.join(app, "bin", app + ".py")
0 commit comments