]> git.pld-linux.org Git - packages/python-logilab-astng.git/commitdiff
- absolute_import patch updated
authorJacek Konieczny <jajcus@pld-linux.org>
Fri, 8 Jul 2011 09:26:04 +0000 (09:26 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- Release: 3

Changed files:
    logilab-astng-absolute_import.patch -> 1.2
    python-logilab-astng.spec -> 1.29

logilab-astng-absolute_import.patch
python-logilab-astng.spec

index 0dd51fa1092f63d736ca6546a27f24bc6eda7095..99d2e36cc4d8efb7636c886356cf5e5b37048af8 100644 (file)
@@ -1,7 +1,15 @@
-diff -dur logilab-astng-0.21.1.orig/scoped_nodes.py logilab-astng-0.21.1/scoped_nodes.py
---- 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 10:19:38.000000000 +0200
-@@ -342,6 +342,8 @@
+--- 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
index 943edd906c6d274983d202077f8ccd197bd4e320..9c0881e1003761b7be38672619a4e4f31ade7d89 100644 (file)
@@ -4,7 +4,7 @@ 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:       2
+Release:       3
 License:       GPL
 Group:         Development/Languages/Python
 Source0:       ftp://ftp.logilab.fr/pub/astng/%{module}-%{version}.tar.gz
This page took 0.028245 seconds and 4 git commands to generate.