aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Capitani <m.capitani@nextworks.it>2018-07-13 12:43:33 +0200
committerMarco Capitani <m.capitani@nextworks.it>2018-07-13 12:43:33 +0200
commitaf45ed266b22cefe4d94f1843536466828316414 (patch)
treeff9eeaecadea5c413fe475a3a367a2f0683f32b6
parent616939104caae3e6110db569089edc091959eafc (diff)
downloadrumba-af45ed266b22cefe4d94f1843536466828316414.tar.gz
rumba-af45ed266b22cefe4d94f1843536466828316414.zip
storyboard: fix stringbuffer bugs
-rw-r--r--rumba/storyboard.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rumba/storyboard.py b/rumba/storyboard.py
index f03a2e8..200cca7 100644
--- a/rumba/storyboard.py
+++ b/rumba/storyboard.py
@@ -45,7 +45,7 @@ import rumba.log as log
try:
from io import StringIO
except ImportError:
- import StringIO # Python 2 here
+ from StringIO import StringIO # Python 2 here
logger = log.get_logger(__name__)
@@ -1221,7 +1221,7 @@ class StoryBoard(_SBEntity):
"""
s = StringIO()
self.write_script(s)
- return s
+ return s.getvalue()
def parse_script(self, buffer, clean=True):
"""