]> git.lyx.org Git - lyx.git/commitdiff
DocBook: make copier compatible with Python 2.
authorThibaut Cuvelier <tcuvelier@lyx.org>
Mon, 27 Sep 2021 13:36:09 +0000 (15:36 +0200)
committerThibaut Cuvelier <tcuvelier@lyx.org>
Wed, 13 Oct 2021 00:36:39 +0000 (02:36 +0200)
lib/scripts/docbook_copy.py

index 8148b85fa94c4165c79b20db24da1e9d788fa15c..d2e4fe005857f05986564268d19cee83b8aed3ba 100644 (file)
@@ -154,7 +154,6 @@ class DocBookCopier:
             shutil.copyfile(
                 os.path.join(in_generated_images_folder, img),
                 os.path.join(out_generated_images_folder, img),
-                follow_symlinks=False,
             )
 
     def copy(self):
@@ -164,7 +163,7 @@ class DocBookCopier:
             self.call_lilypond()
 
         # Perform the actual copy: both the modified XML file and the generated images, if LilyPond is used.
-        shutil.copyfile(self.in_file, self.out_file, follow_symlinks=False)
+        shutil.copyfile(self.in_file, self.out_file)
         if self.do_lilypond_processing:
             self.copy_lilypond_generated_images()