I'm trying to make an existing program work. I have corrected some parts of this program that I believe was developed for Vers. 2.x, but I'm trying to run it in 3.6.5. But I came across a line that I can not evaluate if there is a syntax error or what it would be.
This is the line below:
''' % (args.var, args.mexe.split(os.sep)[-1], mexe.replace('\n', ''), args.iexe.split(os.sep)[-1], iexe.replace('\n', ''))
That generates this error: - >
TypeError: a bytes-like object is required, not 'str'
Thanks in advance for your cooperation.