freebsd-ports/devel/py-ruledispatch/files/patch-src-dispatch___init__.py
Martin Wilke 81100672d4 - Update lang/python26 and make Python 2.6.2 to the default Python version
Tested by:	3 pointyhat runs
Thanks to:	pav, gahr, lwhsu, mva, amdmi3
2009-06-08 22:30:55 +00:00

20 lines
557 B
Python

--- src/dispatch/__init__.py.orig 2009-05-14 22:55:09.000000000 +0200
+++ src/dispatch/__init__.py 2009-05-14 22:55:45.000000000 +0200
@@ -95,7 +95,7 @@
return decorate_assignment(callback)
-def as(*decorators):
+def fas(*decorators):
"""Use Python 2.4 decorators w/Python 2.2+
Example:
@@ -103,7 +103,7 @@
import dispatch
class Foo(object):
- [dispatch.as(classmethod)]
+ [dispatch.fas(classmethod)]
def something(cls,etc):
\"""This is a classmethod\"""
"""