rpms/pychecker/devel pychecker-0.8.14-None.patch, NONE, 1.1 pychecker.spec, 1.13, 1.14

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Thu Jun 9 12:24:46 UTC 2005


Author: mitr

Update of /cvs/dist/rpms/pychecker/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv20025

Modified Files:
	pychecker.spec 
Added Files:
	pychecker-0.8.14-None.patch 
Log Message:
* Thu Jun  9 2005 Miloslav Trmac <mitr at redhat.com> - 0.8.14-4
- Backport a fix for spurious warnings about "is{, not} None"


pychecker-0.8.14-None.patch:
 CodeChecks.py |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

--- NEW FILE pychecker-0.8.14-None.patch ---
--- pychecker-0.8.14/pychecker/CodeChecks.py.None	2005-06-09 14:16:15.000000000 +0200
+++ pychecker-0.8.14/pychecker/CodeChecks.py	2005-06-09 14:17:09.000000000 +0200
@@ -1299,7 +1299,7 @@
         # FIXME: how should booleans should e handled, need to think about it
 ##        if second_arg.const or (second_arg.type == Stack.TYPE_GLOBAL and
 ##                                second_arg.data in ['True', 'False']):
-        if second_arg.const:
+        if second_arg.const and second_arg.data is not None:
             data = second_arg.data
             if second_arg.type is types.DictType:
                 data = {}


Index: pychecker.spec
===================================================================
RCS file: /cvs/dist/rpms/pychecker/devel/pychecker.spec,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- pychecker.spec	18 Feb 2005 13:17:54 -0000	1.13
+++ pychecker.spec	9 Jun 2005 12:24:44 -0000	1.14
@@ -3,9 +3,10 @@
 Summary:  A python source code checking tool.
 Name: pychecker
 Version: 0.8.14
-Release: 3
+Release: 4
 URL: http://pychecker.sourceforge.net
 Source0: http://prdownloads.sourceforge.net/pychecker/pychecker-%{version}.tar.gz
+Patch0: pychecker-0.8.14-None.patch
 License: BSDish
 Group: Development/Tools
 Requires: python
@@ -20,6 +21,7 @@
 
 %prep
 %setup -q
+%patch0 -p1 -b .None
 
 %build
 CFLAGS="$RPM_OPT_FLAGS" python setup.py build
@@ -40,6 +42,9 @@
 %dir /usr/lib/python*/site-packages/pychecker
 
 %changelog
+* Thu Jun  9 2005 Miloslav Trmac <mitr at redhat.com> - 0.8.14-4
+- Backport a fix for spurious warnings about "is{, not} None"
+
 * Fri Feb 18 2005 Miloslav Trmac <mitr at redhat.com> - 0.8.14-3
 - Fix build failure on lib64 platforms
 




More information about the fedora-cvs-commits mailing list