* [gentoo-commits] gentoo-x86 commit in dev-python/ruledispatch/files: ruledispatch_as_syntax_fix.patch
@ 2009-07-25 13:42 Jesus Rivero (neurogeek)
0 siblings, 0 replies; only message in thread
From: Jesus Rivero (neurogeek) @ 2009-07-25 13:42 UTC (permalink / raw
To: gentoo-commits
neurogeek 09/07/25 13:42:30
Added: ruledispatch_as_syntax_fix.patch
Log:
Added patch to fix syntax error. Removed older version. Closes bug #264490
(Portage version: 2.2_rc23/cvs/Linux i686)
Revision Changes Path
1.1 dev-python/ruledispatch/files/ruledispatch_as_syntax_fix.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/ruledispatch/files/ruledispatch_as_syntax_fix.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/ruledispatch/files/ruledispatch_as_syntax_fix.patch?rev=1.1&content-type=text/plain
Index: ruledispatch_as_syntax_fix.patch
===================================================================
Added by: Jesus Rivero (Neurogeek)
On: 25 Jul 2009
Per Upstream bug: https://bugs.launchpad.net/ubuntu/+source/ruledispatch/+bug/342916
diff -uNr RuleDispatch.orig/src/dispatch/__init__.py RuleDispatch/src/dispatch/__init__.py
--- RuleDispatch.orig/src/dispatch/__init__.py 2009-07-25 13:25:08.000000000 +0000
+++ RuleDispatch/src/dispatch/__init__.py 2009-07-25 13:27:19.000000000 +0000
@@ -95,7 +95,7 @@
return decorate_assignment(callback)
-def as(*decorators):
+def as_(*decorators):
"""Use Python 2.4 decorators w/Python 2.2+
Example:
Files RuleDispatch.orig/src/dispatch/__init__.pyc and RuleDispatch/src/dispatch/__init__.pyc differ
Files RuleDispatch.orig/src/dispatch/interfaces.pyc and RuleDispatch/src/dispatch/interfaces.pyc differ
diff -uNr RuleDispatch.orig/src/dispatch/predicates.py RuleDispatch/src/dispatch/predicates.py
--- RuleDispatch.orig/src/dispatch/predicates.py 2009-07-25 13:25:08.000000000 +0000
+++ RuleDispatch/src/dispatch/predicates.py 2009-07-25 13:27:58.000000000 +0000
@@ -236,7 +236,7 @@
return or_, (EXPR_GETTER_ID,)
- [as(classmethod)]
+ [as_(classmethod)]
def immediate(klass,seq):
for item in seq:
if item:
@@ -260,7 +260,7 @@
return and_, (EXPR_GETTER_ID,)
- [as(classmethod)]
+ [as_(classmethod)]
def immediate(klass,seq):
for item in seq:
if not item:
@@ -278,7 +278,7 @@
return get(argIds[2])
return ifelse, (EXPR_GETTER_ID,)
- [as(classmethod)]
+ [as_(classmethod)]
def immediate(klass,seq):
if seq[1]: return seq[0]
return seq[2]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-07-25 13:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-25 13:42 [gentoo-commits] gentoo-x86 commit in dev-python/ruledispatch/files: ruledispatch_as_syntax_fix.patch Jesus Rivero (neurogeek)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox