Skip to content

Commit e8ed460

Browse files
committed
Added a workaround for thread import lock problem, http://bugs.python.org/issue7980.
- Legacy-Id: 10922
1 parent 4cac784 commit e8ed460

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

ietf/release/views.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111

1212
import changelog
1313

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

0 commit comments

Comments
 (0)