We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f89422 commit c2d4abdCopy full SHA for c2d4abd
bagit.py
@@ -277,7 +277,7 @@ class Bag(object):
277
valid_files = ["bagit.txt", "fetch.txt"]
278
valid_directories = ["data"]
279
280
- def __init__(self, path=None):
+ def __init__(self, path):
281
super(Bag, self).__init__()
282
self.tags = {}
283
self.info = {}
@@ -300,11 +300,7 @@ def __init__(self, path=None):
300
self.algorithms = []
301
self.tag_file_name = None
302
self.path = os.path.abspath(path)
303
- if path:
304
- # if path ends in a path separator, strip it off
305
- if path[-1] == os.sep:
306
- self.path = path[:-1]
307
- self._open()
+ self._open()
308
309
def __str__(self):
310
# FIXME: develop a more informative string representation for a Bag
0 commit comments