[jhbuild] Do not use "from . import <module>", to keep working with Python 2.4



commit 8087f3c4319593a3479ca26be5f858f12aa8900a
Author: FrÃdÃric PÃters <fpeters 0d be>
Date:   Fri Oct 21 15:42:45 2011 +0200

    Do not use "from . import <module>", to keep working with Python 2.4

 jhbuild/utils/packagedb.py |    4 ++--
 jhbuild/utils/trigger.py   |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/jhbuild/utils/packagedb.py b/jhbuild/utils/packagedb.py
index 3d72334..ceb9342 100644
--- a/jhbuild/utils/packagedb.py
+++ b/jhbuild/utils/packagedb.py
@@ -24,7 +24,7 @@ import time
 import logging
 import xml.dom.minidom as DOM
 
-from . import lockfile
+from jhbuild.utils import lockfile
 
 try:
     import xml.etree.ElementTree as ET
@@ -33,7 +33,7 @@ except ImportError:
 
 from StringIO import StringIO
 
-from . import fileutils
+from jhbuild.utils import fileutils
 
 def _parse_isotime(string):
     if string[-1] != 'Z':
diff --git a/jhbuild/utils/trigger.py b/jhbuild/utils/trigger.py
index 669656f..6baa686 100644
--- a/jhbuild/utils/trigger.py
+++ b/jhbuild/utils/trigger.py
@@ -22,7 +22,7 @@ import sys
 import subprocess
 import re
 
-from . import cmds
+from jhbuild.utils import cmds
 
 class Trigger(object):
     SUFFIX = '.trigger'



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]