self.path shouldn't be None by fkloft · Pull Request #167 · LibraryOfCongress/bagit-python

Conversation

@fkloft

As mentioned in issue #166, self.path shouldn't be None. This removes the default value of None and removes the check for None. os.path.abspath will remove any trailing slash (except for the directory root /).
This should be backwards compatible, since previously os.path.abspath(None) would've raised an exception.

Felix Kloft and others added 4 commits

October 15, 2024 17:30
… os.path.[...] is used elsewhere

@acdha

I removed a commit altering .gitignore since those are files you'd normally want git clean to remove and we no longer have .tox.

acdha

2 participants

@fkloft @acdha