Skip to content

Commit

Permalink
explain use of rstrip
Browse files Browse the repository at this point in the history
  • Loading branch information
truib committed Oct 3, 2024
1 parent e1ba74f commit 1f1eada
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eb_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -786,8 +786,11 @@ def post_postproc_cudnn(self, *args, **kwargs):
# remove search string, split into words, remove trailing
# dots '.' and only retain words starting with a dot '.'
distributable = line[len(search_string):]
# distributable looks like ' the runtime files .so and .dll.'
# note the '.' after '.dll'
for word in distributable.split():
if word[0] == '.':
# rstrip is used to remove the '.' after '.dll'
allowlist.append(word.rstrip('.'))

allowlist = sorted(set(allowlist))
Expand Down

0 comments on commit 1f1eada

Please sign in to comment.