plugin_tutorial: update __init__.py example to match Python 3 syntax

This commit is contained in:
James Lu 2020-03-14 11:11:24 -07:00
parent 521eb14e04
commit b057b39e33

View File

@ -148,8 +148,9 @@ The rest of :file:`__init__.py` really shouldn't be touched unless you are
using third-party modules in your plugin. If you are, then you need to take using third-party modules in your plugin. If you are, then you need to take
special note of the section that looks like this:: special note of the section that looks like this::
import config from . import config
import plugin from . import plugin
from importlib import reload
reload(plugin) # In case we're being reloaded. reload(plugin) # In case we're being reloaded.
# Add more reloads here if you add third-party modules and want them # Add more reloads here if you add third-party modules and want them
# to be reloaded when this plugin is reloaded. Don't forget to # to be reloaded when this plugin is reloaded. Don't forget to