Skip to content

Commit

Permalink
Merge pull request #30 from RockefellerArchiveCenter/v0.6
Browse files Browse the repository at this point in the history
v0.6
  • Loading branch information
helrond authored May 27, 2020
2 parents 9d247ed + e4ac360 commit 43eec92
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 714 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Compiled python modules.
*.pyc
__pycache__

# Setuptools distribution folder.
/dist/
Expand Down
4 changes: 2 additions & 2 deletions asterism/bagit_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ def update_manifests(bag_path):
def get_bag_info_fields(bag_path):
"""Returns """
fields = {}
patterns = ["(?P<key>[\w\-]+)", "(?P<val>.+)"]
patterns = ["(?P<key>[\\w\\-]+)", "(?P<val>.+)"]
try:
with open(join(bag_path, "bag-info.txt"), "r") as f:
for line in f.readlines():
line = line.strip("\n")

row_search = re.search(":?(\s)?".join(patterns), line)
row_search = re.search(":?(\\s)?".join(patterns), line)
if row_search:
key = row_search.group("key").replace("-", "_").strip()
val = row_search.group("val").strip()
Expand Down
Empty file removed asterism/resources/__init__.py
Empty file.
250 changes: 0 additions & 250 deletions asterism/resources/archivesspace.py

This file was deleted.

Loading

0 comments on commit 43eec92

Please sign in to comment.