openbsd-ports/devel/py-ruledispatch/patches/patch-src_dispatch___init___py
martynas bdcef3b25b as is a special keyword in python2.6. rename it to dispatch_as;
unbreaking build for MODPY_VERSION=2.6.  noticed by sthen@ in a bulk build
fgs@ ok
2009-08-06 23:36:44 +00:00

13 lines
404 B
Plaintext

$OpenBSD: patch-src_dispatch___init___py,v 1.1 2009/08/06 23:36:44 martynas Exp $
--- src/dispatch/__init__.py.orig Wed Apr 25 07:01:44 2007
+++ src/dispatch/__init__.py Wed Aug 5 18:48:17 2009
@@ -95,7 +95,7 @@ def generic(combiner=None):
return decorate_assignment(callback)
-def as(*decorators):
+def dispatch_as(*decorators):
"""Use Python 2.4 decorators w/Python 2.2+
Example: