more list()
This commit is contained in:
1 parent
5794a347f1
commit
bee609a316
3 files changed
+3
-3
No files matched your search
@@ -1367,7 +1367,7 @@ class PluginManager(object):
|
||||
def log_all_plugins(self, show_bundled=True, bundled_str=(" (bundled)", ""), show_location=True,
|
||||
location_str=" = {location}", show_enabled=True, enabled_str=(" ", "!", "#"),
|
||||
only_to_handler=None):
|
||||
all_plugins = self.enabled_plugins.values() + self.disabled_plugins.values()
|
||||
all_plugins = list(self.enabled_plugins.values()) + list(self.disabled_plugins.values())
|
||||
|
||||
def _log(message, level=logging.INFO):
|
||||
if only_to_handler is not None:
|
||||
|
||||
@@ -104,7 +104,7 @@ class AnnouncementPlugin(octoprint.plugin.AssetPlugin,
|
||||
ttl=6*60,
|
||||
display_limit=3,
|
||||
summary_limit=300)
|
||||
settings["enabled_channels"] = settings["channels"].keys()
|
||||
settings["enabled_channels"] = list(settings["channels"].keys())
|
||||
return settings
|
||||
|
||||
def get_settings_version(self):
|
||||
|
||||
@@ -113,7 +113,7 @@ def enable_additional_translations(default_locale="en", additional_folders=None)
|
||||
# plugin translations
|
||||
plugins = octoprint.plugin.plugin_manager().enabled_plugins
|
||||
for name, plugin in plugins.items():
|
||||
dirs = map(lambda x: os.path.join(x, "_plugins", name), additional_folders) + [os.path.join(plugin.location, 'translations')]
|
||||
dirs = list(map(lambda x: os.path.join(x, "_plugins", name), additional_folders)) + [os.path.join(plugin.location, 'translations')]
|
||||
for dirname in dirs:
|
||||
if not os.path.isdir(dirname):
|
||||
continue
|
||||
|
||||
Reference in new issue
Block a user