Skip to content

Commit 192f9a5

Browse files
committed
bug fix
1 parent d96b442 commit 192f9a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/paddle/fluid/io.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,9 +585,9 @@ def _write_success(dirname):
585585
:param dirname
586586
"""
587587
success_file = os.path.join(dirname, SUCCESS_MARK_FILENAME)
588-
with open(success_file, 'a'):
588+
with open(success_file, 'a') as f:
589589
now = time.ctime()
590-
success_file.write(now)
590+
f.write(now)
591591

592592

593593
def _get_lastest_checkpoint_dir(checkpoint_dir):

0 commit comments

Comments
 (0)