Skip to content

Commit

Permalink
calling to_xml for raw block
Browse files Browse the repository at this point in the history
  • Loading branch information
traut committed Jul 3, 2015
1 parent c616cfd commit b990f7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cabby/cli/poll.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def generate_filename(collection, content_block):
collection_name = re.sub(r"[^\w]+", "-", collection) if collection else ""

md5 = hashlib.md5()
md5.update(content_block.to_xml())
md5.update(content_block.raw.to_xml())

filename = '%s_%s' % (collection_name, md5.hexdigest())

Expand All @@ -48,7 +48,7 @@ def save_to_dir(dest_dir, collection, content_block, as_raw):

with open(path, 'w') as f:
if as_raw:
content = content_block.to_xml(pretty_print=True)
content = content_block.raw.to_xml(pretty_print=True)
else:
content = content_block.content

Expand Down

0 comments on commit b990f7b

Please sign in to comment.