diff options
author | Rob Austein <sra@hactrn.net> | 2021-02-16 06:40:45 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2021-02-16 06:40:45 +0000 |
commit | 61a631cbcf8c584dd8adde13d26d005eb4675935 (patch) | |
tree | a4e864b2feb3e4248328972e767b709e33387c7a | |
parent | 5a91960371555fc4fb7638c479a6a27b70768085 (diff) |
Trivial cleanup
-rwxr-xr-x | trac2md.py | 15 |
1 files changed, 3 insertions, 12 deletions
@@ -1,17 +1,8 @@ -#!/usr/bin/env python2 +# This started out as https://www.snip2code.com/Snippet/1704331/Convert-trac-markup-to-Markdown/ +# which in turn said "This code mostly taken from patches to pagure_importer by mreynolds". +# Has mutated considerably since then. -# Untested code from https://www.snip2code.com/Snippet/1704331/Convert-trac-markup-to-Markdown/ - -# This code mostly taken from patches to pagure_importer by mreynolds - -import sys import re -import time -import requests -import shutil -import os -from base64 import b64decode -from datetime import datetime from urllib.parse import quote content_linebreak_pattern = re.compile(r"\[\[br\]\]|\\\\", re.I) |