Bug 22955

Summary: Creating new connection causes DeprecationWarning output
Product: dbus Reporter: Huang Peng <shawn.p.huang>
Component: pythonAssignee: Simon McVittie <smcv>
Status: RESOLVED DUPLICATE QA Contact: John (J5) Palmieri <johnp>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

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.