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:
Giorgos Keramidas 2009-06-21 13:55:35 +00:00
parent bbdc0c23b8
commit 300b30872d
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=34465

View file

@ -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: