Bug 22955 - Creating new connection causes DeprecationWarning output
Summary: Creating new connection causes DeprecationWarning output
Status: RESOLVED DUPLICATE of bug 21172
Alias: None
Product: dbus
Classification: Unclassified
Component: python (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Simon McVittie
QA Contact: John (J5) Palmieri
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-26 19:34 UTC by Huang Peng
Modified: 2010-02-18 07:08 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Huang Peng 2009-07-26 19:34:45 UTC
When I call dbus.connection.Connection(address) to create a new connection directly, the python gives me below DeprecationWarning output.

[phuang@phuang-notebook ~]$ python
Python 2.6 (r26:66714, Jun  8 2009, 16:07:26) 
[GCC 4.4.0 20090506 (Red Hat 4.4.0-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import dbus
>>> dbus.connection.Connection("unix:abstract=/tmp/dbus-OeIIlZDebP,guid=4701cac1dc9e9e1fe326e7fb4a6d0930")
/usr/lib/python2.6/site-packages/dbus/connection.py:242: DeprecationWarning: object.__init__() takes no parameters
  super(Connection, self).__init__(*args, **kwargs)
<dbus.connection.Connection object at 0xb7c06d7c>
>>>
Comment 1 Simon McVittie 2010-02-18 07:08:40 UTC

*** This bug has been marked as a duplicate of bug 21172 ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.