SHA256
1
0
forked from pool/fail2ban
fail2ban/fail2ban-issue_906-strptime.patch
2015-01-23 10:27:14 +00:00

13 lines
432 B
Diff

diff -ur fail2ban-0.8.14.orig/common/__init__.py fail2ban-0.8.14/common/__init__.py
--- fail2ban-0.8.14.orig/common/__init__.py 2014-08-19 22:23:33.000000000 +0200
+++ fail2ban-0.8.14/common/__init__.py 2015-01-21 21:51:13.425141175 +0100
@@ -28,3 +28,7 @@
# Custom debug level
logging.HEAVYDEBUG = 5
+
+from time import strptime
+# strptime thread safety hack-around - http://bugs.python.org/issue7980
+strptime("2012", "%Y")