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

- Legacy-Id: 10922
This commit is contained in:
Henrik Levkowetz 2016-03-14 19:24:19 +00:00
parent 4cac784522
commit e8ed4609f2

View file

@ -11,6 +11,11 @@ from django.http import HttpResponse
import changelog
# workaround for thread import lock problem, http://bugs.python.org/issue7980
import time
time.strptime('1984', '%Y') # this will happen lazily when changelog calls tzparse later, otherwise
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)