It depends how you look at it. I think it's a bad idea to replace the leading dots with underscores altogether (especially indiscriminately like that code does), so one might consider it was an existing bug that my change uncovered.

If you consider it a bit of a stretch, then it's unrelated.  It's just that that code (and probably some more too) should be consolidated under filenaming.py.