Author hanno
Recipients hanno
Date 2018-12-23.12:58:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
2to3 (in python 3.6.6) will rewrite the reload function to use the imp module. However according to [1] "Deprecated since version 3.4: The imp package is pending deprecation in favor of importlib."
Also running the code with warnings enabled will show a deprecation warning.

Example, take this minimal script:

import sys

Running to 2to3 ends up with:
import sys
import imp

$ PYTHONWARNINGS=d python3 DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp

Date User Action Args
2018-12-23 12:58:40hannosetrecipients: + hanno
2018-12-23 12:58:37hannosetmessageid: <>
2018-12-23 12:58:37hannolinkissue35570 messages
2018-12-23 12:58:37hannocreate