Patch for bug reported in patch #686627: import race condition in codecs registry startup.
Patch for bug reported in patch #686627: import race condition in
codecs registry startup.

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator