Trim '\r' and '\n' from filenames read from stdin.
The input line is printed in debug levels >= 4. If it includes the newline we read from stdin, debug messages include empty lines, so this should keep the debug output a bit more compact.
This commit is contained in:
parent
bbdc0c23b8
commit
300b30872d
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=34465
1 changed files with 1 additions and 0 deletions
|
@ -216,6 +216,7 @@ def fileinfo(fname):
|
|||
debug(3, "Finding %%SOURCE%% and %%SRCID%% info of file `%s'" % fname)
|
||||
|
||||
for l in file(fname):
|
||||
l = l.rstrip('\r\n')
|
||||
nsrc = None
|
||||
m = srcre.match(l)
|
||||
if m:
|
||||
|
|
Loading…
Reference in a new issue