Skip to content

Commit

Permalink
Append space only if missing
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas committed Nov 29, 2024
1 parent a323ef7 commit e725cf9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions aiida_test_cache/mock_code/_hasher.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ def __call__(self, cwd: Path) -> str:
file_content_bytes = file_obj.read()
if path.name == self.SUBMIT_FILE:
file_content_bytes = self._strip_submit_content(file_content_bytes)
# TODO: REVERT THIS!!!!
file_content_bytes += b" "
# TODO: This is a temporary ugly hack for backward compatibility wit aiida-core<2.3
# REVERT THIS after 0.0.1 release!
if not file_content_bytes.endswith(b" "):
file_content_bytes += b" "
self.log("##################")
self.log("Stripped submit.sh")
self.log(f"\n{file_content_bytes.decode('utf-8')}")
Expand Down

0 comments on commit e725cf9

Please sign in to comment.