Improve bytes/unicode distinction for reading modules from bitcode & assembly

This commit is contained in:
Thomas Kluyver 2012-09-30 15:07:51 +01:00 • committed by Siu Kwan Lam
commit aba3e208d2
3 changed files with 17 additions and 2 deletions

View file

@ -101,3 +101,8 @@ def _isstring_choose():
isstring = _isstring_choose()
try:
unicode_type = unicode
except NameError: # Py3
unicode_type = str