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 e1800a0 commit ff1df39Copy full SHA for ff1df39
readthedocs/projects/tasks.py
@@ -119,7 +119,7 @@ def pull_cached_environment(self):
119
'msg': msg,
120
}
121
)
122
- tmp_filename = tempfile.mkstemp(suffix='.tar')
+ _, tmp_filename = tempfile.mkstemp(suffix='.tar')
123
remote_fd = storage.open(filename, mode='rb')
124
with open(tmp_filename, mode='wb') as local_fd:
125
local_fd.write(remote_fd.read())
@@ -143,7 +143,7 @@ def push_cached_environment(self):
143
os.path.join(project_path, '.cache'),
144
]
145
146
147
# open just with 'w', to not compress and waste CPU cycles
148
with tarfile.open(tmp_filename, 'w') as tar:
149
for path in paths:
0 commit comments