334c334
<     p.parse(open(pathname), cd)
---
>     p.parse(open(pathname, "rb"), cd)
352c352
<       rcsfile = open(rcs_pathname, 'r')
---
>       rcsfile = open(rcs_pathname, 'rb')
357c357
<         rcsfile = open(rcs_pathname, 'r')
---
>         rcsfile = open(rcs_pathname, 'rb')
882c882
<     pipe = os.popen('co -q -p%s \'%s\'' % (cvs_rev, rcs_file), 'r', 102400)
---
>     pipe = os.popen('co -q -p%s \'%s\'' % (cvs_rev, rcs_file), 'r')
