[py3k] fix relative import

Implicit relative imports no longer work.

authorJulien Cristau <julien.cristau@logilab.fr>
changeset5b44acfd687b
branchdefault
phasepublic
hiddenno
parent revision#abffb3f1ab37 pkginfo: adjust for python3
child revision#d9762b5a4604 [pkg] Use setuptools
files modified by this revision
analyze.py
# HG changeset patch
# User Julien Cristau <julien.cristau@logilab.fr>
# Date 1406538778 -7200
# Mon Jul 28 11:12:58 2014 +0200
# Node ID 5b44acfd687b253fe5ca76ed3cf0356c0842aeba
# Parent abffb3f1ab3734d3721678b4b9592ed3975a5e52
[py3k] fix relative import

Implicit relative imports no longer work.

diff --git a/analyze.py b/analyze.py
@@ -32,11 +32,11 @@
1 
2  try:
3      pure = bool(os.environ.get('RQL_USE_PURE_PYTHON_ANALYSE', 0))
4      if pure:
5          raise ImportError
6 -    import rql_solve
7 +    from rql import rql_solve
8  except ImportError:
9      rql_solve = None
10      import warnings
11      warnings.filterwarnings(action='ignore', module='logilab.constraint.propagation')
12      from logilab.constraint import Repository, Solver, fd