Closed nei-oliveiraneto closed 6 years ago
I have only used webdiff locally, so when I made it work with Python3, that's the way I tested it. That first error message is what you get when you as Python3's regex match to search for a str pattern (unicode) in a bytes object. Probably, the string we get from the github_fetcher
is actually a bytes object. I'll try to take a closer look later at that. We can always just put in a bit of code to force the pattern and the string to both by str or to both be bytes.
The other error is another Python3 incompatibility. Python3's built in exception Exception
doesn't have a message
attribute. However our exception only has a single argument, so just doing sys.stderr.write('error: %s\n\n' % e)
will work just fine and work in Python2 and Python3.
Thank you for being so readily available. It ran absolutely fine with Python 2.7. Props.
Since there was no activity in reviewing these commits I am using my privileges as a maintainer to merge the pull request which closes this issue.
I tried running directly from GitHub, but this is what happens:
If anyone would like anymore info, just ask.
What I've been doing is clone the repo again in a separate directory,
checking-out
each of the branches I want to compare and calling webdiff locally with the paths of the dirs.