Comments
Patch
@@ -597,7 +597,7 @@
if el + '\n' == l:
if os.altsep:
# matching on "/" is not needed for this line
- log("\nInfo, unnecessary glob: %s (glob)" % el)
+ return 'glob'
return True
i, n = 0, len(el)
res = ''
@@ -790,6 +790,9 @@
if r == 'slash':
log('\ninfo, missing glob in test %s (after line %d): %s'
% (test, pos, el))
+ elif r == 'glob':
+ log('\ninfo, unnecessary glob in test %s (after line %d):'
+ ' %s (glob)\n' % (test, pos, el[-1]))
else:
if needescape(lout):
lout = stringescape(lout.rstrip('\n')) + " (esc)\n"