Martin v. Löwis <mar...@v.loewis.de> added the comment: I find the injection of a fake unicode class too hacky. Instead, I suggest that each module does
try: _unicode = unicode except NameError: # no unicode support in this build class _unicode: pass and then have the isinstance checks look for _unicode ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8767> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com