# Path: bugzilla/_util.py
# def listify(val):
#     """Ensure that value is either None or a list, converting single values
#     into 1-element lists"""
#     if val is None:
#         return val
#     if isinstance(val, list):
#         return val
#     return [val]


import base64
import json
import logging
import os
from ._backendbase import _BackendBase
from .exceptions import BugzillaError
from ._util import listify
# This work is licensed under the GNU GPLv2 or later.
# See the COPYING file in the top-level directory.




log = logging.getLogger(__name__)


def _update_key(indict, updict, key):
    if key not in indict:
        indict[key] = {}

# Path: bugzilla/_util.py
# def listify(val):
#     """Ensure that value is either None or a list, converting single values
#     into 1-element lists"""
#     if val is None:
#         return val
#     if isinstance(val, list):
#         return val
#     return [val]


# Path: bugzilla/_backendrest.py
import base64
import json
import logging
import os
from ._backendbase import _BackendBase
from .exceptions import BugzillaError
from ._util import listify

# This work is licensed under the GNU GPLv2 or later.
# See the COPYING file in the top-level directory.




log = logging.getLogger(__name__)


def _update_key(indict, updict, key):
    if key not in indict:
        indict[key] = {}

    indict[key].update(updict.get(key, {}))