From 150feda3f03490b7f3d7e8803165131e47cb316f Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sun, 8 Jul 2018 09:52:28 +0200 Subject: core.commands: Remove implicit conversion from Path to str in /set. --- poezio/core/commands.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/poezio/core/commands.py b/poezio/core/commands.py index 7d503fff..e438e095 100644 --- a/poezio/core/commands.py +++ b/poezio/core/commands.py @@ -6,7 +6,6 @@ import logging log = logging.getLogger(__name__) -import os from xml.etree import cElementTree as ET from slixmpp.exceptions import XMPPError @@ -571,8 +570,7 @@ class CommandCore: section = plugin_name option = args[1] if plugin_name not in self.core.plugin_manager.plugins: - file_name = self.core.plugin_manager.plugins_conf_dir - file_name = os.path.join(file_name, plugin_name + '.cfg') + file_name = self.core.plugin_manager.plugins_conf_dir / (plugin_name + '.cfg') plugin_config = PluginConfig(file_name, plugin_name) else: plugin_config = self.core.plugin_manager.plugins[ @@ -599,8 +597,7 @@ class CommandCore: option = args[1] value = args[2] if plugin_name not in self.core.plugin_manager.plugins: - file_name = self.core.plugin_manager.plugins_conf_dir - file_name = os.path.join(file_name, plugin_name + '.cfg') + file_name = self.core.plugin_manager.plugins_conf_dir / (plugin_name + '.cfg') plugin_config = PluginConfig(file_name, plugin_name) else: plugin_config = self.core.plugin_manager.plugins[ -- cgit v1.2.3