Skip to content

Commit f8377a4

Browse files
committed
Merge pull request #3117 from xavfernandez/fix_split_leading_dir
Fix split_leading_dir, no need to cast to str
2 parents e78df3e + 070a728 commit f8377a4

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

pip/utils/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ def file_contents(filename):
221221

222222

223223
def split_leading_dir(path):
224-
path = str(path)
225224
path = path.lstrip('/').lstrip('\\')
226225
if '/' in path and (('\\' in path and path.find('/') < path.find('\\')) or
227226
'\\' not in path):

0 commit comments

Comments
 (0)