The Backslash Issue
In the early afternoon I fixed a bug in the create_page function of
the Python version of tumblelog. If one used, for example, \1 in
the blog title the program would stop with an PatternError exception
stating "invalid group reference 1". The reason for this is that the
sub method processes any backslash characters unless a function
call is used. I explain this in more detail in Python re.sub
gotcha.
Now, in the updated version, all substitutes are properly using a
function call (lambda) instead of a string to prevent this issue from
occuring. While it's unlikely someone uses, for example, \1 as an
argument to --label-format and blowing up the archive, I decided to
fix that substitution as well: better safe than sorry.
As usual the latest version is available on GitHub.