projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28cd761
)
Update oauth library.
author
Josh Roesslein
<jroesslein@gmail.com>
Sat, 31 Oct 2009 07:04:50 +0000
(
02:04
-0500)
committer
Josh Roesslein
<jroesslein@gmail.com>
Sat, 31 Oct 2009 07:04:50 +0000
(
02:04
-0500)
tweepy/oauth.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/oauth.py
b/tweepy/oauth.py
index b6284c55bfdf033b656eb6efb83ffe52aae6fb50..286de187c9e7ca6bcb9800d30308af18d00cc72d 100644
(file)
--- a/
tweepy/oauth.py
+++ b/
tweepy/oauth.py
@@
-514,7
+514,7
@@
class OAuthServer(object):
"""Verify that timestamp is recentish."""
timestamp = int(timestamp)
now = int(time.time())
- lapsed =
now - timestamp
+ lapsed =
abs(now - timestamp)
if lapsed > self.timestamp_threshold:
raise OAuthError('Expired timestamp: given %d and now %s has a '
'greater difference than threshold %d' %