dbus/python _dbus.py, 1.8, 1.9 _util.py, 1.1, 1.2 decorators.py, 1.3,
1.4 extract.py, 1.3, 1.4 matchrules.py, 1.3, 1.4 proxies.py,
1.4, 1.5 service.py, 1.4, 1.5
John Palmieri
johnp at freedesktop.org
Thu Jul 21 00:15:10 EST 2005
Update of /cvs/dbus/dbus/python
In directory gabe:/tmp/cvs-serv18265/python
Modified Files:
_dbus.py _util.py decorators.py extract.py matchrules.py
proxies.py service.py
Log Message:
* python/_dbus.py, _util.py, decorators.py, extract.py, matchrules.py.
proxies.py, service.py: Cleanup of code after running it through the
pyflakes code checker mostly dealing with undefined names.
(Bug #3828, Patch from Anthony Baxter <anthony at interlink.com.au>)
Index: _dbus.py
===================================================================
RCS file: /cvs/dbus/dbus/python/_dbus.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- _dbus.py 17 Jul 2005 21:02:56 -0000 1.8
+++ _dbus.py 20 Jul 2005 14:15:08 -0000 1.9
@@ -48,9 +48,6 @@
from exceptions import *
from matchrules import *
-import re
-import inspect
-
class Bus:
"""A connection to a DBus daemon.
Index: _util.py
===================================================================
RCS file: /cvs/dbus/dbus/python/_util.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- _util.py 1 May 2005 19:34:58 -0000 1.1
+++ _util.py 20 Jul 2005 14:15:08 -0000 1.2
@@ -1,4 +1,5 @@
import re
+from exceptions import ValidationException
def _validate_interface_or_name(value):
elements = value.split('.')
Index: decorators.py
===================================================================
RCS file: /cvs/dbus/dbus/python/decorators.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- decorators.py 24 May 2005 16:30:50 -0000 1.3
+++ decorators.py 20 Jul 2005 14:15:08 -0000 1.4
@@ -1,7 +1,6 @@
import _util
import inspect
import dbus_bindings
-import new
def method(dbus_interface):
_util._validate_interface_or_name(dbus_interface)
Index: extract.py
===================================================================
RCS file: /cvs/dbus/dbus/python/extract.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- extract.py 23 Dec 2004 00:50:37 -0000 1.3
+++ extract.py 20 Jul 2005 14:15:08 -0000 1.4
@@ -1,7 +1,5 @@
import commands
-import glob
import re
-import os
import string
import sys
Index: matchrules.py
===================================================================
RCS file: /cvs/dbus/dbus/python/matchrules.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- matchrules.py 15 Jul 2005 02:15:08 -0000 1.3
+++ matchrules.py 20 Jul 2005 14:15:08 -0000 1.4
@@ -1,4 +1,4 @@
-from exceptions import *
+from exceptions import DBusException
class SignalMatchNode:
def __init__(self):
Index: proxies.py
===================================================================
RCS file: /cvs/dbus/dbus/python/proxies.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- proxies.py 16 May 2005 21:27:04 -0000 1.4
+++ proxies.py 20 Jul 2005 14:15:08 -0000 1.5
@@ -1,4 +1,5 @@
import dbus_bindings
+from exceptions import MissingReplyHandlerException, MissingErrorHandlerException
class ProxyMethod:
"""A proxy Method.
@@ -29,7 +30,7 @@
if not(reply_handler and error_handler):
if reply_handler:
- raise MissingErrorself, HandlerException()
+ raise MissingErrorHandlerException()
elif error_handler:
raise MissingReplyHandlerException()
Index: service.py
===================================================================
RCS file: /cvs/dbus/dbus/python/service.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- service.py 17 Jul 2005 21:02:56 -0000 1.4
+++ service.py 20 Jul 2005 14:15:08 -0000 1.5
@@ -1,6 +1,7 @@
-from decorators import *
import dbus_bindings
+import _dbus
+from exceptions import UnknownMethodException
class BusName:
"""A base class for exporting your own Named Services across the Bus
@@ -10,7 +11,7 @@
if bus == None:
# Get the default bus
- self._bus = Bus()
+ self._bus = _dbus.Bus()
else:
self._bus = bus
More information about the dbus-commit
mailing list