summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--poezio/config.py2
-rw-r--r--poezio/connection.py2
-rw-r--r--poezio/core/core.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/poezio/config.py b/poezio/config.py
index f3c5f375..dfe46e3c 100644
--- a/poezio/config.py
+++ b/poezio/config.py
@@ -599,7 +599,7 @@ def setup_logging():
LOGGING_CONFIG['handlers']['error'] = {
'level': 'ERROR',
'class': 'logging.FileHandler',
- 'filename': LOG_DIR / 'errors.log',
+ 'filename': str(LOG_DIR / 'errors.log'),
'formatter': 'simple',
}
logging.disable(logging.WARNING)
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')
diff --git a/poezio/core/core.py b/poezio/core/core.py
index 8356c025..1aa244c0 100644
--- a/poezio/core/core.py
+++ b/poezio/core/core.py
@@ -77,7 +77,7 @@ class Core(object):
self.bookmarks = BookmarkList()
self.debug = False
self.remote_fifo = None
- self.avatar_cache = FileSystemPerJidCache(xdg.CACHE_HOME, 'avatars', binary=True)
+ self.avatar_cache = FileSystemPerJidCache(str(xdg.CACHE_HOME), 'avatars', binary=True)
# a unique buffer used to store global information
# that are displayed in almost all tabs, in an
# information window.