packages: pylint/pylint.spec, pylint/pylint-relative_import_from.patch (NEW...
jajcus
jajcus at pld-linux.org
Fri Jul 8 11:27:16 CEST 2011
Author: jajcus Date: Fri Jul 8 09:27:16 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- patch to fix 'variables' checker which relied on broken logilab-astng import handling
- Release: 2
---- Files affected:
packages/pylint:
pylint.spec (1.53 -> 1.54) , pylint-relative_import_from.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/pylint/pylint.spec
diff -u packages/pylint/pylint.spec:1.53 packages/pylint/pylint.spec:1.54
--- packages/pylint/pylint.spec:1.53 Mon Dec 27 13:02:07 2010
+++ packages/pylint/pylint.spec Fri Jul 8 11:27:11 2011
@@ -5,12 +5,13 @@
Summary: Python tool that checks if a module satisfy a coding standard
Summary(pl.UTF-8): Pythonowe narzędzie sprawdzające zgodność modułu ze standardem kodowania
Name: pylint
-Version: 0.22.0
-Release: 1
+Version: 0.23.0
+Release: 2
License: GPL
Group: Development/Languages/Python
Source0: ftp://ftp.logilab.fr/pub/pylint/%{name}-%{version}.tar.gz
-# Source0-md5: feb2c37a64c8c8ab54081945c8762e95
+# Source0-md5: 3c241b161b7e6826011cb8bde4fcf891
+Patch0: %{name}-relative_import_from.patch
URL: http://www.logilab.org/project/pylint
BuildRequires: python-devel
BuildRequires: python-modules >= 2.2.1
@@ -45,6 +46,7 @@
%prep
%setup -q
+%patch -p1
%build
python setup.py build
@@ -86,6 +88,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.54 2011/07/08 09:27:11 jajcus
+- patch to fix 'variables' checker which relied on broken logilab-astng import handling
+- Release: 2
+
Revision 1.53 2010/12/27 12:02:07 patrys
- 0.22.0
================================================================
Index: packages/pylint/pylint-relative_import_from.patch
diff -u /dev/null packages/pylint/pylint-relative_import_from.patch:1.1
--- /dev/null Fri Jul 8 11:27:17 2011
+++ packages/pylint/pylint-relative_import_from.patch Fri Jul 8 11:27:11 2011
@@ -0,0 +1,13 @@
+diff -dur pylint-0.23.0.orig/checkers/variables.py pylint-0.23.0/checkers/variables.py
+--- pylint-0.23.0.orig/checkers/variables.py 2011-01-11 15:55:06.000000000 +0100
++++ pylint-0.23.0/checkers/variables.py 2011-07-08 11:03:13.000000000 +0200
+@@ -455,7 +455,8 @@
+ """check modules attribute accesses"""
+ name_parts = node.modname.split('.')
+ try:
+- module = node.root().import_module(name_parts[0])
++ level = getattr(node, 'level', None)
++ module = node.root().import_module(name_parts[0], level = level)
+ except ASTNGBuildingException:
+ return
+ except Exception, exc:
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/pylint/pylint.spec?r1=1.53&r2=1.54&f=u
More information about the pld-cvs-commit
mailing list