mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 06:18:40 +08:00
coredump.py:bug fix python file not have rename
tmpfile.rename(args.output) ^^^^^^^^^^^^^^ AttributeError: '_io.BufferedRandom' object has no attribute 'rename'. Did you mean: 'name'? Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
parent
f6facf7602
commit
2dcd300a3c
1 changed files with 1 additions and 1 deletions
|
@ -134,8 +134,8 @@ def main():
|
||||||
outfile.close()
|
outfile.close()
|
||||||
os.unlink(tmp)
|
os.unlink(tmp)
|
||||||
else:
|
else:
|
||||||
tmpfile.rename(args.output)
|
|
||||||
tmpfile.close()
|
tmpfile.close()
|
||||||
|
os.rename(tmp, args.output)
|
||||||
|
|
||||||
print("Core file conversion completed: " + args.output)
|
print("Core file conversion completed: " + args.output)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue