rpms/python-ruledispatch/devel python-ruledispatch-0.5a0-py26keyword.patch, NONE, 1.1 python-ruledispatch.spec, 1.13, 1.14

Ignacio Vazquez-Abrams ivazquez at fedoraproject.org
Tue Dec 2 22:39:10 UTC 2008


Author: ivazquez

Update of /cvs/pkgs/rpms/python-ruledispatch/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv20559

Modified Files:
	python-ruledispatch.spec 
Added Files:
	python-ruledispatch-0.5a0-py26keyword.patch 
Log Message:
Add patch to change "as" to "asnew"

python-ruledispatch-0.5a0-py26keyword.patch:

--- NEW FILE python-ruledispatch-0.5a0-py26keyword.patch ---
diff -up RuleDispatch-0.5a0.dev-r2306/src/dispatch/__init__.py.keyword RuleDispatch-0.5a0.dev-r2306/src/dispatch/__init__.py
--- RuleDispatch-0.5a0.dev-r2306/src/dispatch/__init__.py.keyword	2008-12-02 17:32:55.000000000 -0500
+++ RuleDispatch-0.5a0.dev-r2306/src/dispatch/__init__.py	2008-12-02 17:33:35.000000000 -0500
@@ -95,7 +95,7 @@ def generic(combiner=None):
     return decorate_assignment(callback)
 
 
-def as(*decorators):
+def asnew(*decorators):
     """Use Python 2.4 decorators w/Python 2.2+
 
     Example:
@@ -103,7 +103,7 @@ def as(*decorators):
         import dispatch
 
         class Foo(object):
-            [dispatch.as(classmethod)]
+            [dispatch.asnew(classmethod)]
             def something(cls,etc):
                 \"""This is a classmethod\"""
     """
diff -up RuleDispatch-0.5a0.dev-r2306/src/dispatch/predicates.py.keyword RuleDispatch-0.5a0.dev-r2306/src/dispatch/predicates.py
--- RuleDispatch-0.5a0.dev-r2306/src/dispatch/predicates.py.keyword	2008-12-02 17:32:55.000000000 -0500
+++ RuleDispatch-0.5a0.dev-r2306/src/dispatch/predicates.py	2008-12-02 17:33:59.000000000 -0500
@@ -236,7 +236,7 @@ class OrExpr(LogicalExpr):
 
         return or_, (EXPR_GETTER_ID,)
 
-    [as(classmethod)]
+    [asnew(classmethod)]
     def immediate(klass,seq):
         for item in seq:
             if item:
@@ -260,7 +260,7 @@ class AndExpr(LogicalExpr):
 
         return and_, (EXPR_GETTER_ID,)
 
-    [as(classmethod)]
+    [asnew(classmethod)]
     def immediate(klass,seq):
         for item in seq:
             if not item:
@@ -278,7 +278,7 @@ class IfElse(LogicalExpr):
             return get(argIds[2])
         return ifelse, (EXPR_GETTER_ID,)
 
-    [as(classmethod)]
+    [asnew(classmethod)]
     def immediate(klass,seq):
         if seq[1]: return seq[0]
         return seq[2]


Index: python-ruledispatch.spec
===================================================================
RCS file: /cvs/pkgs/rpms/python-ruledispatch/devel/python-ruledispatch.spec,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- python-ruledispatch.spec	2 Dec 2008 17:31:38 -0000	1.13
+++ python-ruledispatch.spec	2 Dec 2008 22:38:39 -0000	1.14
@@ -5,13 +5,14 @@
 
 Name:           python-ruledispatch
 Version:        0.5a0
-Release:        0.12.svn%{svnrev}%{?dist}
+Release:        0.13.svn%{svnrev}%{?dist}
 Summary:        A generic function package for Python
 
 Group:          Development/Languages
 License:        Python or ZPLv2.1
 URL:            http://www.turbogears.org
 Source0:        http://files.turbogears.org/eggs/RuleDispatch-%{version}.dev-%{svnrev}.tar.gz
+Patch0:         python-ruledispatch-0.5a0-py26keyword.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  python-devel python-setuptools-devel
@@ -23,6 +24,7 @@
 
 %prep
 %setup -q -n RuleDispatch-%{version}.dev-%{svnrev}
+%patch0 -p 1 -b .keyword
 
 %build
 CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
@@ -55,6 +57,9 @@
 %{python_sitearch}/dispatch/tests/*.pyo
 
 %changelog
+* Tue Dec  2 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm at gmail.com> - 0.5a0-0.12.svnr2306
+- Add patch to change "as" to "asnew"
+
 * Tue Dec 2 2008 Toshio Kuratomi <toshio at fedoraproject.org> - 0.5a0-0.12.svnr2306
 - Enable test suite.
 




More information about the fedora-extras-commits mailing list