Skip to content

Commit ff1df39

Browse files
humitosericholscher
authored andcommitted
Ignore OS-level handle
1 parent e1800a0 commit ff1df39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

readthedocs/projects/tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def pull_cached_environment(self):
119119
'msg': msg,
120120
}
121121
)
122-
tmp_filename = tempfile.mkstemp(suffix='.tar')
122+
_, tmp_filename = tempfile.mkstemp(suffix='.tar')
123123
remote_fd = storage.open(filename, mode='rb')
124124
with open(tmp_filename, mode='wb') as local_fd:
125125
local_fd.write(remote_fd.read())
@@ -143,7 +143,7 @@ def push_cached_environment(self):
143143
os.path.join(project_path, '.cache'),
144144
]
145145

146-
tmp_filename = tempfile.mkstemp(suffix='.tar')
146+
_, tmp_filename = tempfile.mkstemp(suffix='.tar')
147147
# open just with 'w', to not compress and waste CPU cycles
148148
with tarfile.open(tmp_filename, 'w') as tar:
149149
for path in paths:

0 commit comments

Comments
 (0)