A simpler solution might be to remove _ from the list of chars that tempfile uses to create filenames, with something like: tempfile._RandomNameSequence.characters = tempfile._RandomNameSequence.characters.strip("_")
It seems to work ok: http://pastebin.ubuntu.com/7831443/
A simpler solution might be to remove _ from the list of chars that tempfile uses to create filenames, with something like: _RandomNameSequ ence.characters = tempfile. _RandomNameSequ ence.characters .strip( "_")
tempfile.
It seems to work ok: http:// pastebin. ubuntu. com/7831443/