summaryrefslogtreecommitdiffstats
path: root/python_modules/codegen.py
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2010-07-29 09:03:15 -0400
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-20 15:25:49 +0100
commitaa7a086933c8b03d2f7f78874342a53719a24fa5 (patch)
tree16da3681ef0af2befa57a8ce258f958e380247c4 /python_modules/codegen.py
parentaae971c6abff7deacc9ffcde8aab87ded08b24c3 (diff)
downloadspice-protocol-aa7a086933c8b03d2f7f78874342a53719a24fa5.tar.gz
spice-protocol-aa7a086933c8b03d2f7f78874342a53719a24fa5.tar.xz
spice-protocol-aa7a086933c8b03d2f7f78874342a53719a24fa5.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/codegen.py')
-rw-r--r--python_modules/codegen.py1
1 files changed, 1 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):