| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
|
|
|
|
| |
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
|
|
|
|
|
|
|
|
|
| |
Test for compile warning using:
find src/ -iname '*.py' | xargs -P 4 -I{} python -Wall -m py_compile {}
find tests/ -iname '*.py' | xargs -P 4 -I{} python -Wall -m py_compile {}
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
|
|
|
|
|
|
|
|
| |
- Make sure enclosing brackets match.
- Use the built-in classes/checks for the IPv6/IPv4 address format.
- Extend tests to bad cases
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
|
|
|
|
|
|
|
|
| |
Fix ipv6 validation for addresses that include the brackets,
such as [2001:8003:5555:9999:555a:5555:c77:d5c5]. See
https://tools.ietf.org/html/rfc4038#section-5.1 regarding the inclusion
of brackets in the address. The Shibboleth IdP sends ipv6 addresses
that include the brackets.
|
| |
|
| |
|
|
|
|
| |
time, slack as different value)
|
|
|
| |
Due to this bug, messages were being rendered literally with '%d' characters, missing the actual intended information.
|
|
|
|
|
|
|
|
|
|
| |
This fixes 2 things:
1.) First, the values were exchanged according to the comparison order
2.) Second, the slack was not included in the messages, leaving the possibility of printing
confusing message. I decided to add or substract (respectively) the slack from "now" instead
of nooa/nbefore, since "now" is more volatile and there's a better chance that people could
try to search for the nooa/nbefore numbers in the dumps (encapsulated in SAML messages) rather
then for the ever-changing value of "now".
|
| |
|
| |
|
|
|
|
| |
In python3 types are more strictly compared sometimes.
|
|
|
|
| |
Relative imports don't quite work anymore in python3.
|
|
|
|
|
|
|
| |
six.moves handles some of the reorganized modules.
With dircache, it was simply removed as it has been deprecated for a
long time. os.listdir performs fine these days.
|
|
|
|
|
| |
Retains python2.7 compatibility for all files. Fixes only syntax errors,
tests still fail on python3 for various reasons.
|
| |
|
| |
|
|
|
|
| |
Minor editorial changes.
|
| |
|
| |
|
| |
|
|
|
|
| |
Refactored a couple of lines to something more palatable.
|
|
|