Fix xml debug logs

don’t ask, don’t tell
This commit is contained in:
mathieui 2019-08-21 16:18:23 +02:00
parent de953c9d55
commit 3ea2ea338f
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3

View file

@ -20,7 +20,6 @@ from configparser import RawConfigParser, NoOptionError, NoSectionError
from pathlib import Path from pathlib import Path
from shutil import copy2 from shutil import copy2
from typing import Callable, Dict, List, Optional, Union, Tuple from typing import Callable, Dict, List, Optional, Union, Tuple
from slixmpp import JID
from poezio.args import parse_args from poezio.args import parse_args
from poezio import xdg from poezio import xdg
@ -225,6 +224,7 @@ class Config(RawConfigParser):
in the section, we search for the global option if fallback is in the section, we search for the global option if fallback is
True. And we return `default` as a fallback as a last resort. True. And we return `default` as a fallback as a last resort.
""" """
from slixmpp import JID
if isinstance(tabname, JID): if isinstance(tabname, JID):
tabname = tabname.full tabname = tabname.full
if self.default and (not default) and fallback: if self.default and (not default) and fallback: