paolobenve/myphotoshare

Allow % characters in `album.ini` files

Opened this issue · 0 comments

album.ini files are maily used as metadata containers and don't need all the power of Python configuration files with inclusions and macros. I let these features open when I added them, just in case for future use, but now they prevent entering % in metadata text (https://bugs.python.org/issue26872).

This line

self.album_ini = configparser.ConfigParser(allow_no_value=True)

must be replaced by

self.album_ini = configparser.ConfigParser(allow_no_value=True, interpolation=None)