From fcaaa6ef492282bccf60fccbd74e1f493c6a0ccf Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Thu, 5 Jul 2018 16:28:44 +0200 Subject: Add a bunch of str() to convert pathlib.Path into str. --- poezio/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'poezio/connection.py') diff --git a/poezio/connection.py b/poezio/connection.py index 0cbff1a5..aba4a2f0 100644 --- a/poezio/connection.py +++ b/poezio/connection.py @@ -121,7 +121,7 @@ class Connection(slixmpp.ClientXMPP): # Must be loaded before 0030. self.register_plugin('xep_0115', { 'caps_node': 'https://poez.io', - 'cache': FileSystemCache(xdg.CACHE_HOME, 'caps', encode=str, + 'cache': FileSystemCache(str(xdg.CACHE_HOME), 'caps', encode=str, decode=lambda x: DiscoInfo(ET.fromstring(x))), }) self.register_plugin('xep_0030') -- cgit v1.2.3