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

Commit

Permalink
Fix line-length issue
Browse files Browse the repository at this point in the history
  • Loading branch information
gbroques committed Aug 6, 2020
1 parent 4b57b42 commit f807365
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pydocstyle/parser.py
Expand Up @@ -130,7 +130,8 @@ 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.

while path != path.parent and path not in syspath: # Bail if we are at the root directory or in `PYTHONPATH`.
# 2nd condition is to 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
path = path.parent
Expand Down

0 comments on commit f807365

Please sign in to comment.