mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-12 14:30:09 +01:00
fix false positive lint issue
This commit is contained in:
parent
26e3232170
commit
2243e025b7
1 changed files with 5 additions and 1 deletions
|
|
@ -151,6 +151,10 @@ class VCSAPI:
|
|||
self('commit', env=env, message=message)
|
||||
else:
|
||||
message_data = message.encode("utf-8")
|
||||
|
||||
# The tmp_file must exist for the duration of the commit command,
|
||||
# but also must be flushed and closed before the command runs.
|
||||
# pylint:disable=consider-using-with
|
||||
tmp_file = tempfile.NamedTemporaryFile("wb", delete=False)
|
||||
try:
|
||||
assert " " not in tmp_file.name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue