Skip to content

Commit

Permalink
fix: saml2/time_util: get before/after docstrings right
Browse files Browse the repository at this point in the history
Align the docstrings with what the functions actually implement.
  • Loading branch information
vladimir-mencl-eresearch committed Jun 9, 2021
1 parent 4d2dcce commit f72e286
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/saml2/time_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def utc_now():


def before(point):
""" True if point datetime specification is before now.
""" True if current time is before point datetime specification.
NOTE: If point is specified it is supposed to be in local time.
Not UTC/GMT !! This is because that is what gmtime() expects.
Expand All @@ -286,7 +286,7 @@ def before(point):


def after(point):
""" True if point datetime specification is equal or after now """
""" True if current time is after or equal to point datetime specification."""
if not point:
return True
else:
Expand Down

0 comments on commit f72e286

Please sign in to comment.