Skip to content

Commit

Permalink
Merge pull request tornadoweb#1910 from ajdavis/preload-latin1
Browse files Browse the repository at this point in the history
netutil: Preload the "latin1" codec
  • Loading branch information
bdarnell authored Dec 13, 2016
2 parents d1571a0 + 0efe23e commit d258c17
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tornado/netutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@
# thread now.
u'foo'.encode('idna')

# For undiagnosed reasons, 'latin1' codec may also need to be preloaded.
u'foo'.encode('latin1')

# These errnos indicate that a non-blocking operation must be retried
# at a later time. On most platforms they're the same value, but on
# some they differ.
Expand Down

0 comments on commit d258c17

Please sign in to comment.