Kaydet (Commit) cf0373b4 authored tarafından Caolán McNamara's avatar Caolán McNamara

attachmentid should be stable across mime-type changes

üst ac7a1125
...@@ -80,8 +80,8 @@ def get_from_bug_url_via_xml(url, mimetype, prefix, suffix): ...@@ -80,8 +80,8 @@ def get_from_bug_url_via_xml(url, mimetype, prefix, suffix):
f = open(download, 'w') f = open(download, 'w')
f.write(base64.b64decode(node.firstChild.nodeValue)) f.write(base64.b64decode(node.firstChild.nodeValue))
f.close() f.close()
attachmentid += 1
break break
attachmentid += 1
def get_through_rpc_query(rpcurl, showurl, mimetype, prefix, suffix): def get_through_rpc_query(rpcurl, showurl, mimetype, prefix, suffix):
try: try:
......
Markdown is supported
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