Skip to content

Commit

Permalink
fix: don't prettyprint etree
Browse files Browse the repository at this point in the history
  • Loading branch information
FloatingGhost committed Jun 29, 2017
1 parent 0b0a46d commit 47b59ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions misp_stix_converter/converters/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ def MISPtoSTIX(mispJSON):


def load_stix(stix):
print(stix)
# Just save the pain and load it if the first character is a <
log.debug("Loading STIX...")
if sys.version_info < (3, 5):
Expand Down Expand Up @@ -124,7 +123,7 @@ def load_stix(stix):

log.debug("Writing cleaned XML to Tempfile")
f = SpooledTemporaryFile(max_size=10 * 1024)
f.write(etree.tostring(stixXml, prettyprint=True))
f.write(etree.tostring(stixXml))
f.seek(0)

try:
Expand Down

0 comments on commit 47b59ae

Please sign in to comment.