From 12785d64955afa6809e9f76ee7eb68724101c6e7 Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Tue, 15 Jun 2010 14:13:15 +0000 Subject: fix for python 2.3 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@954901 13f79535-47bb-0310-9956-ffa450edef68 --- python/qpid/ops.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'python/qpid/ops.py') diff --git a/python/qpid/ops.py b/python/qpid/ops.py index 8c9f8a03e7..390552be6d 100644 --- a/python/qpid/ops.py +++ b/python/qpid/ops.py @@ -25,10 +25,12 @@ class Primitive(object): class Enum(object): # XXX: for backwards compatibility - @classmethod def values(cls): print >> sys.stderr, "warning, please use .VALUES instead of .values()" return cls.VALUES + # we can't use the backport preprocessor here because this code gets + # called by setup.py + values = classmethod(values) class Field: -- cgit v1.2.1