Skip to content

Commit fb82351

Browse files
authored
Revert "Fix temporary file permissions"
1 parent b545a8b commit fb82351

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pipeline/compilers/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,6 @@ def execute_command(self, command, cwd=None, stdout_captured=None):
148148
# Decide what to do with captured stdout.
149149
if stdout:
150150
if stdout_captured:
151-
output_filename = os.path.join(cwd or os.curdir, stdout_captured)
152-
shutil.move(stdout.name, output_filename)
153-
os.chmod(output_filename, 420) # 644 in decimal
151+
shutil.move(stdout.name, os.path.join(cwd or os.curdir, stdout_captured))
154152
else:
155153
os.remove(stdout.name)

0 commit comments

Comments
 (0)