Skip to content

Stubgen: normalize input paths when finding common parent directory for out files #8067

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Oct 18, 2020
Prev Previous commit
reduce diff
Signed-off-by: Oleg Höfling <oleg.hoefling@gmail.com>
  • Loading branch information
hoefling committed Aug 1, 2020
commit 23f36468fd94896c94c7f40a9a45e6048a168795
1 change: 0 additions & 1 deletion mypy/stubutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ def remove_misplaced_type_comments(source: Union[str, bytes]) -> Union[str, byte
def common_dir_prefix(paths: List[str]) -> str:
if not paths:
return '.'

cur = os.path.dirname(os.path.normpath(paths[0]))
for path in paths[1:]:
while True:
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy