diff options
| author | Alon Levy <alevy@redhat.com> | 2010-07-29 09:03:15 -0400 |
|---|---|---|
| committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2012-03-20 15:25:49 +0100 |
| commit | c5e79b421587b5ee36c9d8744ba29b2f6f4d5cd0 (patch) | |
| tree | 5f11534a6938e0569951da3c66088f886f29abf0 /python_modules | |
| parent | f5c2e64f820ebe61472afe12a7e2f61dabd16c4d (diff) | |
| download | spice-common-c5e79b421587b5ee36c9d8744ba29b2f6f4d5cd0.tar.gz spice-common-c5e79b421587b5ee36c9d8744ba29b2f6f4d5cd0.tar.xz spice-common-c5e79b421587b5ee36c9d8744ba29b2f6f4d5cd0.zip | |
support python 2.5.4+ for marshaller/demarshallers
Patch adds a "from __future__" import that doesn't affect newer python's but
allows python 2.5.4 to run the code (tested under scratchbox, n900 build environment)
Diffstat (limited to 'python_modules')
| -rw-r--r-- | python_modules/codegen.py | 1 | ||||
| -rw-r--r-- | python_modules/demarshal.py | 1 | ||||
| -rw-r--r-- | python_modules/marshal.py | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/python_modules/codegen.py b/python_modules/codegen.py index af6636b..03c67e6 100644 --- a/python_modules/codegen.py +++ b/python_modules/codegen.py @@ -1,3 +1,4 @@ +from __future__ import with_statement from cStringIO import StringIO def camel_to_underscores(s, upper = False): diff --git a/python_modules/demarshal.py b/python_modules/demarshal.py index c588f98..cbe3599 100644 --- a/python_modules/demarshal.py +++ b/python_modules/demarshal.py @@ -1,3 +1,4 @@ +from __future__ import with_statement import ptypes import codegen diff --git a/python_modules/marshal.py b/python_modules/marshal.py index 6b894c1..9ee1466 100644 --- a/python_modules/marshal.py +++ b/python_modules/marshal.py @@ -1,3 +1,4 @@ +from __future__ import with_statement import ptypes import codegen |
