> 1. use pycompat.bytestr() as this patch does > 2. use '%s' and add quotes in the output I think they can be just "... '%s'" given extension names are unlikely to contain meta characters.