mirror of https://github.com/fail2ban/fail2ban
ENH: add PyPy compatibility
parent
a1a219189f
commit
d3c065bf76
|
@ -6,6 +6,7 @@ python:
|
|||
- "2.7"
|
||||
- "3.2"
|
||||
- "3.3"
|
||||
- "pypy"
|
||||
before_install:
|
||||
- sudo apt-get update -qq
|
||||
install:
|
||||
|
|
|
@ -63,6 +63,7 @@ code-review and minor additions from Yaroslav Halchenko.
|
|||
support these. ISO8601 now defaults to localtime unless specified otherwise.
|
||||
Some filters have been change as required to capture these elements in the
|
||||
right timezone correctly.
|
||||
* Support PyPy
|
||||
|
||||
ver. 0.8.12 (2013/12/XX) - things-can-only-get-better
|
||||
-----------
|
||||
|
|
|
@ -21,7 +21,7 @@ Installation:
|
|||
this case, you should use it instead.**
|
||||
|
||||
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:
|
||||
- [pyinotify >= 0.8.3](https://github.com/seb-m/pyinotify)
|
||||
|
|
|
@ -136,7 +136,8 @@ class Regex:
|
|||
if self._matchCache.group("skiplines%i" % n) is not None:
|
||||
skippedLines += self._matchCache.group("skiplines%i" % n)
|
||||
n += 1
|
||||
except IndexError:
|
||||
# KeyError is because of PyPy
|
||||
except (IndexError, KeyError):
|
||||
break
|
||||
return skippedLines.splitlines(False)
|
||||
|
||||
|
|
Loading…
Reference in New Issue