diff options
author | Dieter Verfaillie <dieterv@optionexplicit.be> | 2011-08-23 07:35:01 +0200 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2011-08-25 16:55:47 -0400 |
commit | 5dc3c2efc89ef57fe159736ab52aae8ff25a745c (patch) | |
tree | beee63722092d26a2fd05c3d4fb0f017f2f5567c /gio | |
parent | 0eaec4e59a9a9662f82d9ceb0c00c15a396adc3f (diff) |
Use relative imports for the gdbus/codegen package
But not yet for the config module (but is taken care
of in a followup patch).
https://bugzilla.gnome.org/show_bug.cgi?id=650763
Diffstat (limited to 'gio')
-rw-r--r-- | gio/gdbus-2.0/codegen/codegen.py | 4 | ||||
-rw-r--r-- | gio/gdbus-2.0/codegen/codegen_docbook.py | 6 | ||||
-rwxr-xr-x | gio/gdbus-2.0/codegen/codegen_main.py | 10 | ||||
-rw-r--r-- | gio/gdbus-2.0/codegen/dbustypes.py | 2 | ||||
-rw-r--r-- | gio/gdbus-2.0/codegen/parser.py | 4 |
5 files changed, 13 insertions, 13 deletions
diff --git a/gio/gdbus-2.0/codegen/codegen.py b/gio/gdbus-2.0/codegen/codegen.py index 825bb4868..9775536a3 100644 --- a/gio/gdbus-2.0/codegen/codegen.py +++ b/gio/gdbus-2.0/codegen/codegen.py @@ -24,8 +24,8 @@ import sys import config -import utils -import dbustypes +from . import utils +from . import dbustypes # ---------------------------------------------------------------------------------------------------- diff --git a/gio/gdbus-2.0/codegen/codegen_docbook.py b/gio/gdbus-2.0/codegen/codegen_docbook.py index 87eb3e5e0..a2fb118b9 100644 --- a/gio/gdbus-2.0/codegen/codegen_docbook.py +++ b/gio/gdbus-2.0/codegen/codegen_docbook.py @@ -25,9 +25,9 @@ import sys import re import config -import utils -import dbustypes -import parser +from . import utils +from . import dbustypes +from . import parser # ---------------------------------------------------------------------------------------------------- diff --git a/gio/gdbus-2.0/codegen/codegen_main.py b/gio/gdbus-2.0/codegen/codegen_main.py index cc9298fa7..f11ef1d5f 100755 --- a/gio/gdbus-2.0/codegen/codegen_main.py +++ b/gio/gdbus-2.0/codegen/codegen_main.py @@ -25,11 +25,11 @@ import sys import optparse import config -import utils -import dbustypes -import parser -import codegen -import codegen_docbook +from . import utils +from . import dbustypes +from . import parser +from . import codegen +from . import codegen_docbook def find_arg(arg_list, arg_name): for a in arg_list: diff --git a/gio/gdbus-2.0/codegen/dbustypes.py b/gio/gdbus-2.0/codegen/dbustypes.py index 277e346f2..212b534d8 100644 --- a/gio/gdbus-2.0/codegen/dbustypes.py +++ b/gio/gdbus-2.0/codegen/dbustypes.py @@ -21,7 +21,7 @@ # # Author: David Zeuthen <davidz@redhat.com> -import utils +from . import utils class Annotation: def __init__(self, key, value): diff --git a/gio/gdbus-2.0/codegen/parser.py b/gio/gdbus-2.0/codegen/parser.py index a324006e4..5fabd4484 100644 --- a/gio/gdbus-2.0/codegen/parser.py +++ b/gio/gdbus-2.0/codegen/parser.py @@ -21,11 +21,11 @@ # # Author: David Zeuthen <davidz@redhat.com> -import dbustypes - import sys import xml.parsers.expat +from . import dbustypes + class DBusXMLParser: STATE_TOP = 'top' STATE_NODE = 'node' |