diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2010-06-15 14:13:15 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2010-06-15 14:13:15 +0000 |
| commit | 7cd9c2dcbe53156ad34640ae518cb87437d43e4b (patch) | |
| tree | 4cf207055023038d1a50df90863d3a1bcdb68f61 /qpid/python | |
| parent | a347fd1b7adc8289812e05f98c2d0f85953c62b2 (diff) | |
| download | qpid-python-7cd9c2dcbe53156ad34640ae518cb87437d43e4b.tar.gz | |
fix for python 2.3
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@954901 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python')
| -rw-r--r-- | qpid/python/qpid/ops.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qpid/python/qpid/ops.py b/qpid/python/qpid/ops.py index 8c9f8a03e7..390552be6d 100644 --- a/qpid/python/qpid/ops.py +++ b/qpid/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: |
