mirror of https://github.com/fail2ban/fail2ban
commit
652260e4eb
|
@ -6,6 +6,7 @@ python:
|
||||||
- "2.7"
|
- "2.7"
|
||||||
- "3.2"
|
- "3.2"
|
||||||
- "3.3"
|
- "3.3"
|
||||||
|
- "pypy"
|
||||||
before_install:
|
before_install:
|
||||||
- sudo apt-get update -qq
|
- sudo apt-get update -qq
|
||||||
install:
|
install:
|
||||||
|
|
|
@ -63,6 +63,7 @@ code-review and minor additions from Yaroslav Halchenko.
|
||||||
support these. ISO8601 now defaults to localtime unless specified otherwise.
|
support these. ISO8601 now defaults to localtime unless specified otherwise.
|
||||||
Some filters have been change as required to capture these elements in the
|
Some filters have been change as required to capture these elements in the
|
||||||
right timezone correctly.
|
right timezone correctly.
|
||||||
|
* Support PyPy
|
||||||
|
|
||||||
ver. 0.8.12 (2013/12/XX) - things-can-only-get-better
|
ver. 0.8.12 (2013/12/XX) - things-can-only-get-better
|
||||||
-----------
|
-----------
|
||||||
|
|
|
@ -21,7 +21,7 @@ Installation:
|
||||||
this case, you should use it instead.**
|
this case, you should use it instead.**
|
||||||
|
|
||||||
Required:
|
Required:
|
||||||
- [Python2 >= 2.4 or Python3 >= 3.2](http://www.python.org)
|
- [Python2 >= 2.4 or Python3 >= 3.2](http://www.python.org) or [PyPy](http://pypy.org)
|
||||||
|
|
||||||
Optional:
|
Optional:
|
||||||
- [pyinotify >= 0.8.3](https://github.com/seb-m/pyinotify)
|
- [pyinotify >= 0.8.3](https://github.com/seb-m/pyinotify)
|
||||||
|
|
|
@ -21,7 +21,7 @@ __author__ = "Cyril Jaquier"
|
||||||
__copyright__ = "Copyright (c) 2004 Cyril Jaquier"
|
__copyright__ = "Copyright (c) 2004 Cyril Jaquier"
|
||||||
__license__ = "GPL"
|
__license__ = "GPL"
|
||||||
|
|
||||||
import re, sre_constants
|
import re, sre_constants, sys
|
||||||
|
|
||||||
##
|
##
|
||||||
# Regular expression class.
|
# Regular expression class.
|
||||||
|
@ -138,6 +138,11 @@ class Regex:
|
||||||
n += 1
|
n += 1
|
||||||
except IndexError:
|
except IndexError:
|
||||||
break
|
break
|
||||||
|
# KeyError is because of PyPy issue1665 affecting pypy <= 2.2.1
|
||||||
|
except KeyError:
|
||||||
|
if 'PyPy' not in sys.version: # pragma: no cover - not sure this is even reachable
|
||||||
|
raise
|
||||||
|
break
|
||||||
return skippedLines.splitlines(False)
|
return skippedLines.splitlines(False)
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|
Loading…
Reference in New Issue