##// END OF EJS Templates
Do not unescape backslashes in Windows
Takafumi Arakaki -
Show More
@@ -373,8 +373,11 b' def shellglob(args):'
373
373
374 """
374 """
375 expanded = []
375 expanded = []
376 # Do not unescape backslash in Windows as it is interpreted as
377 # path separator:
378 unescape = unescape_glob if sys.platform != 'win32' else lambda x: x
376 for a in args:
379 for a in args:
377 expanded.extend(glob.glob(a) or [unescape_glob(a)])
380 expanded.extend(glob.glob(a) or [unescape(a)])
378 return expanded
381 return expanded
379
382
380
383
General Comments 0
You need to be logged in to leave comments. Login now