After applying 2to3.py to port a 2.6 script to 3.1, I get the following error when running my script:<br>  File "purekeyworddbtest.py", line 143, in __init__<br>    f = codecs.open(EXCLUDED_KEYWORDS_FILE, 'rt', 'utf-8')<br>

  File "c:\Python31\lib\codecs.py", line 870, in open<br>    file = builtins.open(filename, mode, buffering)<br>ValueError: can't have text and binary mode at once<br><br>I skimmed through python 3.0 release notes, and I haven't seen anything indicating that codecs.open behaviour has changed in incompatible way (just that it is no longer useful). Have I missed something?<br>

<br>Do I need to replace all codecs.open with the built-in open function? If so, why does codecs.open still exist?<br>