+2005-07-20 John (J5) Palmieir <johnp@redhat.com>
+
+ * 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@interlink.com.au>)
+
2005-07-17 John (J5) Palmieri <johnp@redhat.com>
* NEWS: Update to 0.35.2
from exceptions import *
from matchrules import *
-import re
-import inspect
-
class Bus:
"""A connection to a DBus daemon.
import re
+from exceptions import ValidationException
def _validate_interface_or_name(value):
elements = value.split('.')
import _util
import inspect
import dbus_bindings
-import new
def method(dbus_interface):
_util._validate_interface_or_name(dbus_interface)
import commands
-import glob
import re
-import os
import string
import sys
-from exceptions import *
+from exceptions import DBusException
class SignalMatchNode:
def __init__(self):
import dbus_bindings
+from exceptions import MissingReplyHandlerException, MissingErrorHandlerException
class ProxyMethod:
"""A proxy Method.
if not(reply_handler and error_handler):
if reply_handler:
- raise MissingErrorself, HandlerException()
+ raise MissingErrorHandlerException()
elif error_handler:
raise MissingReplyHandlerException()
-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
if bus == None:
# Get the default bus
- self._bus = Bus()
+ self._bus = _dbus.Bus()
else:
self._bus = bus