Comment out un-needed pprint usage

This commit is contained in:
TrainDoctor
2023-01-29 15:27:52 -08:00
parent 994da868af
commit 47653286ab
+7 -6
View File
@@ -1,7 +1,7 @@
# Full imports # Full imports
import json import json
import pprint # import pprint
from pprint import pformat # from pprint import pformat
# Partial imports # Partial imports
from aiohttp import ClientSession, web from aiohttp import ClientSession, web
@@ -111,10 +111,11 @@ class PluginBrowser:
logger.info("uninstalling " + name) logger.info("uninstalling " + name)
logger.info(" at dir " + self.find_plugin_folder(name)) logger.info(" at dir " + self.find_plugin_folder(name))
logger.debug("calling frontend unload for %s" % str(name)) logger.debug("calling frontend unload for %s" % str(name))
await tab.evaluate_js(f"DeckyPluginLoader.unloadPlugin('{name}')") res = await tab.evaluate_js(f"DeckyPluginLoader.unloadPlugin('{name}')")
plugins_snapshot = self.plugins.copy() logger.debug("result of unload from UI: %s", res)
snapshot_string = pformat(plugins_snapshot) # plugins_snapshot = self.plugins.copy()
logger.debug("current plugins: %s", snapshot_string) # snapshot_string = pformat(plugins_snapshot)
# logger.debug("current plugins: %s", snapshot_string)
if self.plugins[name]: if self.plugins[name]:
logger.debug("Plugin %s was found", name) logger.debug("Plugin %s was found", name)
self.plugins[name].stop() self.plugins[name].stop()