Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use slash instead of pathlib.Path.joinpath()
  • Loading branch information
parthea committed May 2, 2021
commit cf541b182f43cbdc69e7dc751ae0f3a907fb0950
4 changes: 1 addition & 3 deletions scripts/buildprbody.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ def get_commit_uri(self, name):
sha = None
api_link = ""

file_path = pathlib.Path(self._change_summary_directory).joinpath(
"{0}.sha".format(name)
)
file_path = pathlib.Path(self._change_summary_directory) / "{0}.sha".format(name)
if file_path.is_file():
with open(file_path, "r") as f:
sha = f.readline().rstrip()
Expand Down