Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Reword comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gbroques committed Aug 7, 2020
1 parent 4bb734d commit cbf1c60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pydocstyle/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def _is_inside_private_package(self):
path = Path(self.name).parent # Ignore the actual module's name
syspath = [Path(p) for p in sys.path] # Convert to pathlib.Path.

# 2nd condition is to bail if we are at the root directory or in `PYTHONPATH`.
# Bail if we are at the root directory or in `PYTHONPATH`.
while path != path.parent and path not in syspath:
if self._is_private_name(path.name):
return True
Expand Down

0 comments on commit cbf1c60

Please sign in to comment.