aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/compat.py
diff options
context:
space:
mode:
Diffstat (limited to 'rest_framework/compat.py')
-rw-r--r--rest_framework/compat.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/rest_framework/compat.py b/rest_framework/compat.py
index 5bba0c86..e0a43f3f 100644
--- a/rest_framework/compat.py
+++ b/rest_framework/compat.py
@@ -430,10 +430,6 @@ except ImportError:
# OAuth 2 support is optional
try:
- import provider as oauth2_provider
+ import provider.oauth2 as oauth2_provider
except ImportError:
oauth2_provider = None
-try:
- import provider.oauth2 as oauth2
-except ImportError:
- oauth2 = None