Switch to io.StringIO

This commit is contained in:
Daniel Martí 2016-01-04 17:00:21 +01:00
parent e3591cb7b8
commit ca5ee87b16
2 changed files with 5 additions and 12 deletions

View file

@ -20,10 +20,7 @@
from argparse import ArgumentParser
import os
import logging
try:
from cStringIO import StringIO
except:
from StringIO import StringIO
import io
import common
import metadata
@ -33,7 +30,7 @@ options = None
def proper_format(app):
s = StringIO()
s = io.StringIO()
# TODO: currently reading entire file again, should reuse first
# read in metadata.py
with open(app.metadatapath, 'r') as f: