Skip to content

Commit

Permalink
Drop compat workaround for unsupported Python 3.2 (#5734)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdufresne authored and carltongibson committed Jan 8, 2018
1 parent 06e2ad0 commit c1848d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rest_framework/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ def distinct(queryset, base):
try:
import coreapi
import uritemplate
except (ImportError, SyntaxError):
# SyntaxError is possible under python 3.2
except ImportError:
coreapi = None
uritemplate = None

Expand Down

0 comments on commit c1848d7

Please sign in to comment.