diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2010-06-15 10:11:39 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2010-06-15 10:11:39 +0000 |
| commit | d297db6db5233897f0fdaad07a9e2d640d425251 (patch) | |
| tree | ab64b8d211ba93386bb1d752871100ca42bc0487 /qpid/python | |
| parent | 4da401174d0beb35c4c0873b543422f18f2a9095 (diff) | |
| download | qpid-python-d297db6db5233897f0fdaad07a9e2d640d425251.tar.gz | |
added back values method for backwards compatibility
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@954787 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python')
| -rw-r--r-- | qpid/python/qpid/ops.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/qpid/python/qpid/ops.py b/qpid/python/qpid/ops.py index acb54aedc5..8c9f8a03e7 100644 --- a/qpid/python/qpid/ops.py +++ b/qpid/python/qpid/ops.py @@ -16,14 +16,19 @@ # specific language governing permissions and limitations # under the License. # -import os, mllib, cPickle as pickle +import os, mllib, cPickle as pickle, sys from util import fill class Primitive(object): pass class Enum(object): - pass + + # XXX: for backwards compatibility + @classmethod + def values(cls): + print >> sys.stderr, "warning, please use .VALUES instead of .values()" + return cls.VALUES class Field: |
