]> git.ipfire.org Git - thirdparty/tornado.git/commit
Clear __package__ in script run by autoreload CLI.
authorBen Darnell <ben@bendarnell.com>
Sun, 21 Jun 2015 17:57:28 +0000 (13:57 -0400)
committerBen Darnell <ben@bendarnell.com>
Sun, 21 Jun 2015 17:57:28 +0000 (13:57 -0400)
commitb647b842b80f812dbc1e6b692278dcd2f28129c0
treeef5c198fcf1412ae7b2061cdafd48d796dd405ee
parent45bea0ddad5ad34d0b4568f553064cfad9baf762
Clear __package__ in script run by autoreload CLI.

This prevents imports from incorrectly being interpreted as
relative to the 'tornado package, which would make the standard
'platform' module unimportable.

See bdarnell/plop#21
tornado/autoreload.py