commit | e60c124b09cb2cd1dbe6f264439fc359629c1b5f | [log] [tgz] |
---|---|---|
author | Jon Wayne Parrott <jonwayne@google.com> | Thu Mar 23 16:00:24 2017 -0700 |
committer | GitHub <noreply@github.com> | Thu Mar 23 16:00:24 2017 -0700 |
tree | 191c4d389122a7bd2e3846f58d7447740646af7d | |
parent | f0bc0720e4747cbd2024ed3f0acdf9c4cfbda441 [diff] [blame] |
Add a consistent 5 minute clock skew accomodation (#145)
diff --git a/google/auth/_helpers.py b/google/auth/_helpers.py index de86bee..860b827 100644 --- a/google/auth/_helpers.py +++ b/google/auth/_helpers.py
@@ -22,6 +22,10 @@ from six.moves import urllib +CLOCK_SKEW_SECS = 300 # 5 minutes in seconds +CLOCK_SKEW = datetime.timedelta(seconds=CLOCK_SKEW_SECS) + + def copy_docstring(source_class): """Decorator that copies a method's docstring from another class.