Skip to content

Commit e22d435

Browse files
authored
Added missing space in info message for :meth:~.SceneFileWriter.clean_cache (#2027)
* fix missing whitespace in info message and improve wording
1 parent 476ac4e commit e22d435

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

manim/scene/scene_file_writer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ def combine_movie_files(self, partial_movie_files=None):
567567
modify_atime(file_path)
568568

569569
def clean_cache(self):
570-
"""Will clean the cache by removing the partial_movie_files used by manim the longest ago."""
570+
"""Will clean the cache by removing the oldest partial_movie_files."""
571571
cached_partial_movies = [
572572
os.path.join(self.partial_movie_directory, file_name)
573573
for file_name in os.listdir(self.partial_movie_directory)
@@ -585,8 +585,8 @@ def clean_cache(self):
585585
for file_to_delete in oldest_files_to_delete:
586586
os.remove(file_to_delete)
587587
logger.info(
588-
f"The partial movie directory is full (> {config['max_files_cached']} files). Therefore, manim has removed {number_files_to_delete} file(s) used by it the longest ago."
589-
+ "You can change this behaviour by changing max_files_cached in config.",
588+
f"The partial movie directory is full (> {config['max_files_cached']} files). Therefore, manim has removed the {number_files_to_delete} oldest file(s).",
589+
"You can change this behaviour by changing max_files_cached in config.",
590590
)
591591

592592
def flush_cache_directory(self):

0 commit comments

Comments
 (0)