Fixed #22577: Python 3 broke on non-module migrations directory
Merge pull request #2824 from valberg/22577

Fixed #22577: Python 3 broke on non-module migrations directory