+++ /dev/null
---- logilab-astng-0.21.1.orig/scoped_nodes.py 2011-01-11 15:47:29.000000000 +0100
-+++ logilab-astng-0.21.1/scoped_nodes.py 2011-07-08 11:07:34.000000000 +0200
-@@ -324,6 +324,8 @@
-
- def import_module(self, modname, relative_only=False, level=None):
- """import the given module considering self as context"""
-+ if relative_only and level is None:
-+ level = 0
- absmodname = self.relative_to_absolute_name(modname, level)
- try:
- return MANAGER.astng_from_module_name(absmodname)
-@@ -342,6 +344,8 @@
- # XXX this returns non sens when called on an absolute import
- # like 'pylint.checkers.logilab.astng.utils'
- # XXX doesn't return absolute name if self.name isn't absolute name
-+ if self.absolute_import_activated() and level is None:
-+ return modname
- if level:
- if self.package:
- level = level - 1
Summary: Python Abstract Syntax Tree New Generation
Summary(pl.UTF-8): Abstrakcyjne drzewa składniowe Pythona nowej generacji
Name: python-logilab-astng
-Version: 0.21.1
-Release: 3
+Version: 0.22.0
+Release: 1
License: GPL
Group: Development/Languages/Python
Source0: ftp://ftp.logilab.fr/pub/astng/%{module}-%{version}.tar.gz
-# Source0-md5: 064a1cb970c283cf18e05a990db48576
-Patch0: logilab-astng-absolute_import.patch
+# Source0-md5: c7313019626369d32cdc08556f5a87bd
URL: http://www.logilab.org/projects/astng
BuildRequires: python-devel
BuildRequires: python-modules >= 1:2.5
%prep
%setup -q -n %{module}-%{version}
-%patch0 -p1
-
%build
python setup.py build