No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with
4 additions and
7 deletions
-
etherpump/commands/pull.py
|
|
@ -407,10 +407,8 @@ async def handle_pad(args, padid, data, info, session): |
|
|
|
links=links, |
|
|
|
) |
|
|
|
async with await trio.open_file(ver["path"], "w") as f: |
|
|
|
print( |
|
|
|
ET.tostring(doc, method="html", encoding="unicode"), |
|
|
|
file=f, |
|
|
|
) |
|
|
|
output = ET.tostring(doc, method="html", encoding="unicode") |
|
|
|
await f.write(output) |
|
|
|
except TypeError: |
|
|
|
ver["message"] = html["message"] |
|
|
|
|
|
|
@ -432,9 +430,8 @@ async def handle_pad(args, padid, data, info, session): |
|
|
|
doc, indent=True, title=padid, scripts=args.script, links=links, |
|
|
|
) |
|
|
|
async with await trio.open_file(ver["path"], "w") as f: |
|
|
|
print( |
|
|
|
ET.tostring(doc, method="html", encoding="unicode"), file=f, |
|
|
|
) |
|
|
|
output = ET.tostring(doc, method="html", encoding="unicode") |
|
|
|
await f.write(output) |
|
|
|
|
|
|
|
# output meta |
|
|
|
if args.all or args.meta: |
|
|
|