packages: python-logilab-astng/logilab-astng-absolute_import.patch, python-...
jajcus
jajcus at pld-linux.org
Fri Jul 8 11:26:09 CEST 2011
Author: jajcus Date: Fri Jul 8 09:26:09 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- absolute_import patch updated
- Release: 3
---- Files affected:
packages/python-logilab-astng:
logilab-astng-absolute_import.patch (1.1 -> 1.2) , python-logilab-astng.spec (1.28 -> 1.29)
---- Diffs:
================================================================
Index: packages/python-logilab-astng/logilab-astng-absolute_import.patch
diff -u packages/python-logilab-astng/logilab-astng-absolute_import.patch:1.1 packages/python-logilab-astng/logilab-astng-absolute_import.patch:1.2
--- packages/python-logilab-astng/logilab-astng-absolute_import.patch:1.1 Fri Jul 8 10:30:35 2011
+++ packages/python-logilab-astng/logilab-astng-absolute_import.patch Fri Jul 8 11:26:04 2011
@@ -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: packages/python-logilab-astng/python-logilab-astng.spec
diff -u packages/python-logilab-astng/python-logilab-astng.spec:1.28 packages/python-logilab-astng/python-logilab-astng.spec:1.29
--- packages/python-logilab-astng/python-logilab-astng.spec:1.28 Fri Jul 8 10:30:35 2011
+++ packages/python-logilab-astng/python-logilab-astng.spec Fri Jul 8 11:26:04 2011
@@ -5,7 +5,7 @@
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
@@ -69,6 +69,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.29 2011/07/08 09:26:04 jajcus
+- absolute_import patch updated
+- Release: 3
+
Revision 1.28 2011/07/08 08:30:35 jajcus
- Version: 0.21.1
- absolute import handling fix (fixes the case when pylint would report 'module imports itself'
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/python-logilab-astng/logilab-astng-absolute_import.patch?r1=1.1&r2=1.2&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/python-logilab-astng/python-logilab-astng.spec?r1=1.28&r2=1.29&f=u
More information about the pld-cvs-commit
mailing list