File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -840,13 +840,13 @@ def commonpath(paths):
840
840
drivesplits = [splitroot (p .replace (altsep , sep ).lower ()) for p in paths ]
841
841
split_paths = [p .split (sep ) for d , r , p in drivesplits ]
842
842
843
- if len (set ( r for d , r , p in drivesplits ) ) != 1 :
843
+ if len ({ r for d , r , p in drivesplits } ) != 1 :
844
844
raise ValueError ("Can't mix absolute and relative paths" )
845
845
846
846
# Check that all drive letters or UNC paths match. The check is made only
847
847
# now otherwise type errors for mixing strings and bytes would not be
848
848
# caught.
849
- if len (set ( d for d , r , p in drivesplits ) ) != 1 :
849
+ if len ({ d for d , r , p in drivesplits } ) != 1 :
850
850
raise ValueError ("Paths don't have the same drive" )
851
851
852
852
drive , root , path = splitroot (paths [0 ].replace (altsep , sep ))
You can’t perform that action at this time.
0 commit comments