Hacker News new | ask | show | jobs
by tyingq 3347 days ago
That is why I used sys.hexversion. Since there are 3 paths, has real bytes, fake str bytes, and no bytes.
1 comments

bytes exists since Python 2.6. Do you really need to support anything older?
Maybe not, but the incremental work was less than making a single codebase work for both 2 and 3. It's code that runs on openwrt, so forcing my ideas on the users is painful for them...they would have to build a whole new image.