This is driving me nuts. Pycharm keeps automatically changing file open modes to 'wb' or 'rb'. Then invariably, on code I don't think I've modified in a long time, I get errors saying it expected a bytes like object because previously I had been treating it as in string mode. I'm guessing this has something to do with reformatting the file and python 2.6 back compatibility but I figured I'd ask if anybody knows how to change this behavior that keeps breaking my scripts???