Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2392730pxb; Mon, 20 Sep 2021 21:11:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3QFvVfO5INikcgty2TaFgLGn1OOGIQpQy70d40E2x1PUhDiUZcSZYMiXSYLE83gWKrnOs X-Received: by 2002:a17:906:d04f:: with SMTP id bo15mr32640949ejb.309.1632197491914; Mon, 20 Sep 2021 21:11:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632197491; cv=none; d=google.com; s=arc-20160816; b=uX2gPt4tmgByaueiO0MaNR81DX/nhgSRWW4QXyggjSQ04JLbD6arlLybKgAJUFcf0p 9hQjQxbqkdJWFfmsw3n8s8ErTetPsukmcQo4lV1kojrHB1CtttkbshR8zDlfGxbSP3uO RcrJg7Kh/HPKKNBVFn3gmvDwPQ94wxcimty27VoAaTAbewZf8Ubq9JaRGUkE8HKrWIE9 fanpnSlYY87WDCfizEtNcUb+kmQ2vTJbTuOfP6QOIU8BlnGCp6GCQQeRa1L1FexR/+rn vzUqMmLjF0EecVVTfy9xElqHYdVFwoOO/4BiPp44Py8H9DKJShpTptRxHi9/3VCzw9uo VIzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:organization:references:in-reply-to:date:to:from:subject :message-id; bh=J+I7rzGd9K0BkWZGyARvTOmMn0eRj/v41f28+aSbE3U=; b=giQlX0lLcs+i0mdYDjAH0TnlMH+rxECW7fnV4ILKrEIX7y+jbx7+Jksarbp+ZAH5zV RMlYepERV9Kpk4zzxGGbkIL3axYO8g7AVk8gE+eYLXlJMDSluUeQd6JNtqS9nYt//U5p V5rDjU6net9hb5Eufls9/GPcUwa1szGan8HSlsoqdRMxbIZdUPq9gxvDxfBFiBTZqeRW OYT2yUdSeUggCUFJy4rIl+uRabhVbbvwCwGnx+KT8PkDpqVnMmvmEqJ6bmh4GfXguK8N 1VebcrNYNUQ71Zrq4sSA33Y2eXjG6lm3GKY/R3ORdy3e1T4wruHrst3LIVWKwtxGvCa/ NcDA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n26si12086928edb.279.2021.09.20.21.11.08; Mon, 20 Sep 2021 21:11:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231825AbhIUDty (ORCPT + 99 others); Mon, 20 Sep 2021 23:49:54 -0400 Received: from mga01.intel.com ([192.55.52.88]:18700 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231817AbhIUDtw (ORCPT ); Mon, 20 Sep 2021 23:49:52 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10113"; a="245692025" X-IronPort-AV: E=Sophos;i="5.85,310,1624345200"; d="scan'208";a="245692025" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Sep 2021 20:48:20 -0700 X-IronPort-AV: E=Sophos;i="5.85,310,1624345200"; d="scan'208";a="652803122" Received: from nvhitchb-mobl.amr.corp.intel.com ([10.209.76.49]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Sep 2021 20:48:20 -0700 Message-ID: <055f1d07ae9f5f7485061c8de9a6e96e29465b4c.camel@linux.intel.com> Subject: Re: Deprecated Python Libraries From: Tedd Ho-Jeong An To: Barry Byford <31baz66@gmail.com>, Bluez mailing list Date: Mon, 20 Sep 2021 20:48:20 -0700 In-Reply-To: References: Organization: Intel Corporation Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Barry, On Fri, 2021-09-17 at 08:03 +0100, Barry Byford wrote: > The Python examples in the test directory have some dependencies that > have issues: > > optparse > According to the documentation this has now been deprecated > > https://docs.python.org/3/library/optparse.html#:~:text=Deprecated%20since%20version%203.2 > > dbus-python > This has some known issues according to the documentation > > https://dbus.freedesktop.org/doc/dbus-python/#:~:text=Alternative%20ways%20to%20get%20your%20Python%20code%20onto%20D-Bus > > The above documentation has recommendations of switching to > import argparse > from gi.repository import Gio > > Both of these should already be on systems because argparse is built > in to Python and gi.repository is used for GLib elsewhere in the > examples. > Would there be any interest in getting patches to change to these > different libraries? > Are these test scripts used in any of the automated tests? > Can I submit a PR via https://github.com/bluez/bluez/pulls? If you have a patch, please submit it via mailing list instead of github. Github is for other purpose and not ready to accept the patches/PR at this point. > > Thanks, > Barry Regards, Tedd Ho-Jeong An