SF.net SVN: docutils:[9869] trunk/docutils/docutils/frontend.py

aa-turner--- via Docutils-checkins <[email protected]>
Newsgroups gmane.text.docutils.cvs
Message-ID <[email protected]>
Revision: 9869
          http://sourceforge.net/p/docutils/code/9869
Author:   aa-turner
Date:     2024-08-08 21:03:15 +0000 (Thu, 08 Aug 2024)
Log Message:
-----------
Fix comprehension syntax

This created a generator comprehension rather than a tuple.
Change to a list-comprehension for backwards compatibility.

Modified Paths:
--------------
    trunk/docutils/docutils/frontend.py

Modified: trunk/docutils/docutils/frontend.py
===================================================================
--- trunk/docutils/docutils/frontend.py	2024-08-08 19:30:28 UTC (rev 9868)
+++ trunk/docutils/docutils/frontend.py	2024-08-08 21:03:15 UTC (rev 9869)
@@ -499,7 +499,7 @@
         if key in pathdict:
             value = pathdict[key]
             if isinstance(value, (list, tuple)):
-                value = (str((base_path/path).resolve()) for path in value)
+                value = [str((base_path/path).resolve()) for path in value]
             elif value:
                 value = str((base_path/value).resolve())
             pathdict[key] = value

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.