Changed param name to self in commit.py