summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2010-07-29 09:03:15 -0400
committerAlexander Larsson <alexl@redhat.com>2010-08-17 16:56:47 +0200
commit6e454248cc759bd4a32f0ff767de023836f8417d (patch)
tree73d71d7500495ca7ea046f0147ae8a7959bb1777
parent01c06d6eaaab01a493567210e3b9dec333ea1e0d (diff)
downloadspice-6e454248cc759bd4a32f0ff767de023836f8417d.tar.gz
spice-6e454248cc759bd4a32f0ff767de023836f8417d.tar.xz
spice-6e454248cc759bd4a32f0ff767de023836f8417d.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)
-rw-r--r--python_modules/codegen.py1
-rw-r--r--python_modules/demarshal.py1
-rw-r--r--python_modules/marshal.py1
3 files changed, 3 insertions, 0 deletions
diff --git a/python_modules/codegen.py b/python_modules/codegen.py
index af6636b0..03c67e6d 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 c588f980..cbe3599d 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 6b894c16..9ee1466d 100644
--- a/python_modules/marshal.py
+++ b/python_modules/marshal.py
@@ -1,3 +1,4 @@
+from __future__ import with_statement
import ptypes
import codegen