def __parse_args(cam_c):
    """Arrange class init params from conf file.
    Returns: a dict with values."""
    user = None
    pswd = None
    name = None
    address = "{address}:{port}".format(**cam_c)
    if cam_c in "user":
        user = cam_c["user"]
        if "pswd" in cam_c:
            pswd = cam_c["pswd"]
    if "name" in cam_c:
        name = cam_c["name"]
    return {"user": user, "pswd": pswd, "name": name, "address": address}
dataset/ETHPy150Open eraclitux/ipcampy/ipcampy/sentry.py/__parse_args/swapped operands of `in`