- Bug seems to be resolved!

This commit is contained in:
ccremers
2006-12-14 20:32:24 +00:00
parent 8f1e1ae8a9
commit 38dd697f41
2 changed files with 43 additions and 39 deletions

View File

@@ -166,6 +166,11 @@ class Scyther(object):
if self.program == None:
raise Error.NoBinaryError
# Sanitize input somewhat
if not spdl or spdl == "":
# Scyther hickups on completely empty input
spdl = " "
# Generate temporary files for the output
# Requires Python 2.3 though.
(fde,fne) = tempfile.mkstemp() # errors
@@ -174,8 +179,7 @@ class Scyther(object):
# Write (input) file
fhi = os.fdopen(fdi,'w+b')
if spdl:
fhi.write(spdl)
fhi.write(spdl)
fhi.close()
# Generate command line for the Scyther process