I am running into following error while trying to grep for a message consisting of multipe lines in a log...can anyone provide inputs on how to overcome this error?
The subprocess.Popen
class expects an argument list like this:
Popen(args, bufsize=0, ...)
So you're passing it:
args
= git
bufsize
= log
Hence the error (bufsize
expects an integer value). The command vector needs to be a list, like this:
gerritlog = Popen(['git','log','--grep','gerrit_commitmsg'], stdout=PIPE, stderr=PIPE)