Added a workaround for a thread import lock problem (http://bugs.python.org/issue7980).

- Legacy-Id: 10940
This commit is contained in:
Henrik Levkowetz 2016-03-16 14:05:19 +00:00
parent 847e03ba91
commit 5905876de1

View file

@ -16,6 +16,10 @@ import time
time.strptime('1984', '%Y') # this will happen lazily when changelog calls tzparse later, otherwise
# workaround for thread import lock problem, http://bugs.python.org/issue7980
import time
time.strptime('1984', '%Y')
def trac_links(text):
# changeset links
text = re.sub(r'\[(\d+)\]', r'<a href="https://wiki.tools.ietf.org/tools/ietfdb/changeset/\1">[\1]</a>', text)