~ubuntu-branches/ubuntu/precise/dbus-python/precise

« back to all changes in this revision

Viewing changes to .pc/python3-support.patch/dbus/lowlevel.py

  • Committer: Package Import Robot
  • Author(s): Barry Warsaw
  • Date: 2012-01-12 14:47:33 UTC
  • Revision ID: package-import@ubuntu.com-20120112144733-xtfbmgw30h0j40d2
Tags: 0.84.0-2ubuntu1
* debian/patches:
  - since-0.84.0.patch: Upstream unreleased changes from git tag
    dbus-python-0.84.0 to HEAD.  This is a precursor to the following.
  - python3-support.patch: Upstream unreleased changes from git
    `python3` branch for supporting Python 3. (LP: #893091)
* debian/rules: Enable the test suite.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (C) 2006 Collabora Ltd. <http://www.collabora.co.uk/>
 
2
#
 
3
# Permission is hereby granted, free of charge, to any person
 
4
# obtaining a copy of this software and associated documentation
 
5
# files (the "Software"), to deal in the Software without
 
6
# restriction, including without limitation the rights to use, copy,
 
7
# modify, merge, publish, distribute, sublicense, and/or sell copies
 
8
# of the Software, and to permit persons to whom the Software is
 
9
# furnished to do so, subject to the following conditions:
 
10
#
 
11
# The above copyright notice and this permission notice shall be
 
12
# included in all copies or substantial portions of the Software.
 
13
#
 
14
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 
15
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 
16
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 
17
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 
18
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 
19
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 
20
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 
21
# DEALINGS IN THE SOFTWARE.
 
22
 
 
23
"""Low-level interface to D-Bus."""
 
24
 
 
25
__all__ = ('PendingCall', 'Message', 'MethodCallMessage',
 
26
           'MethodReturnMessage', 'ErrorMessage', 'SignalMessage',
 
27
           'HANDLER_RESULT_HANDLED', 'HANDLER_RESULT_NOT_YET_HANDLED',
 
28
           'MESSAGE_TYPE_INVALID', 'MESSAGE_TYPE_METHOD_CALL',
 
29
           'MESSAGE_TYPE_METHOD_RETURN', 'MESSAGE_TYPE_ERROR',
 
30
           'MESSAGE_TYPE_SIGNAL')
 
31
 
 
32
from _dbus_bindings import PendingCall, Message, MethodCallMessage, \
 
33
                           MethodReturnMessage, ErrorMessage, SignalMessage, \
 
34
                           HANDLER_RESULT_HANDLED, \
 
35
                           HANDLER_RESULT_NOT_YET_HANDLED, \
 
36
                           MESSAGE_TYPE_INVALID, \
 
37
                           MESSAGE_TYPE_METHOD_CALL, \
 
38
                           MESSAGE_TYPE_METHOD_RETURN, \
 
39
                           MESSAGE_TYPE_ERROR, \
 
40
                           MESSAGE_TYPE_SIGNAL