From: Josh Roesslein Date: Sat, 31 Oct 2009 07:04:50 +0000 (-0500) Subject: Update oauth library. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f539a0cb1de2d3392e8611526b9ea5264af22202;p=tweepy.git Update oauth library. --- diff --git a/tweepy/oauth.py b/tweepy/oauth.py index b6284c5..286de18 100644 --- 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' %