Commit a8f3d49b authored by Sander Bollen's avatar Sander Bollen
Browse files

use simple list in stead of stringio

parent 8caf8042
from tempfile import NamedTemporaryFile
from subprocess import check_call
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
class Primer3(object):
def __init__(self, primer3_exe, template, target, excluded_region,
......@@ -93,11 +87,12 @@ class Primer3(object):
_ = check_call(args=args)
retval = StringIO()
retval = []
with open(out.name) as handle:
for l in handle:
retval.write(l)
retval.append(l.strip())
out.close()
cfg.close()
return retval
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment