Skip to content

Commit f72e286

Browse files
fix: saml2/time_util: get before/after docstrings right
Align the docstrings with what the functions actually implement.
1 parent 4d2dcce commit f72e286

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/saml2/time_util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def utc_now():
269269

270270

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

287287

288288
def after(point):
289-
""" True if point datetime specification is equal or after now """
289+
""" True if current time is after or equal to point datetime specification."""
290290
if not point:
291291
return True
292292
else:

0 commit comments

Comments
 (0)