From: Thibaut Cuvelier Date: Mon, 27 Sep 2021 13:36:09 +0000 (+0200) Subject: DocBook: make copier compatible with Python 2. X-Git-Tag: 2.4-beta2~1130 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=32bd5877e7f1fdd41cd4698d999dddbab53b8e27;p=lyx.git DocBook: make copier compatible with Python 2. --- diff --git a/lib/scripts/docbook_copy.py b/lib/scripts/docbook_copy.py index 8148b85fa9..d2e4fe0058 100644 --- a/lib/scripts/docbook_copy.py +++ b/lib/scripts/docbook_copy.py @@ -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()