Skip to content

Commit c1848d7

Browse files
jdufresnecarltongibson
authored andcommitted
Drop compat workaround for unsupported Python 3.2 (#5734)
1 parent 06e2ad0 commit c1848d7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

rest_framework/compat.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,7 @@ def distinct(queryset, base):
113113
try:
114114
import coreapi
115115
import uritemplate
116-
except (ImportError, SyntaxError):
117-
# SyntaxError is possible under python 3.2
116+
except ImportError:
118117
coreapi = None
119118
uritemplate = None
120119

0 commit comments

Comments
 (0)