diff options
| author | Tom Christie | 2013-03-07 09:15:05 +0000 | 
|---|---|---|
| committer | Tom Christie | 2013-03-07 09:15:05 +0000 | 
| commit | 44930f30915298cda8c1474ed9ec4415258c3e6f (patch) | |
| tree | 8e9754b4b428672df70805696f6b66f6eec3213a /rest_framework/authentication.py | |
| parent | d4e3610e716f2fbbda32aefb972e604446054127 (diff) | |
| download | django-rest-framework-44930f30915298cda8c1474ed9ec4415258c3e6f.tar.bz2 | |
Fix Py3k syntax errors
Diffstat (limited to 'rest_framework/authentication.py')
| -rw-r--r-- | rest_framework/authentication.py | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/rest_framework/authentication.py b/rest_framework/authentication.py index 24a8e336..460c1e53 100644 --- a/rest_framework/authentication.py +++ b/rest_framework/authentication.py @@ -185,7 +185,7 @@ class OAuthAuthentication(BaseAuthentication):          try:              consumer_key = oauth_request.get_parameter('oauth_consumer_key')              consumer = oauth_provider_store.get_consumer(request, oauth_request, consumer_key) -        except oauth_provider_store.InvalidConsumerError, err: +        except oauth_provider_store.InvalidConsumerError as err:              raise exceptions.AuthenticationFailed(err)          if consumer.status != oauth_provider.consts.ACCEPTED: @@ -201,8 +201,8 @@ class OAuthAuthentication(BaseAuthentication):          try:              self.validate_token(request, consumer, token) -        except oauth.Error, e: -            raise exceptions.AuthenticationFailed(e.message) +        except oauth.Error as err: +            raise exceptions.AuthenticationFailed(err.message)          user = token.user | 
