Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commiteaa1caa

Browse files
jdufresnePierre Chiquet
authored and
Pierre Chiquet
committed
Drop compat workaround for unsupported Python 3.2 (encode#5734)
1 parentf047748 commiteaa1caa

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
importcoreapi
115115
importuritemplate
116-
except (ImportError,SyntaxError):
117-
# SyntaxError is possible under python 3.2
116+
exceptImportError:
118117
coreapi=None
119118
uritemplate=None
120119

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp