mirror of
https://github.com/jazzband/django-admin-sortable.git
synced 2026-03-16 22:10:30 +00:00
Make it clear why the httplib import is guarded by a try except and has a fallback
This commit is contained in:
parent
b8bfbe0c9a
commit
defaf45e9a
1 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
try:
|
||||
import httplib
|
||||
import httplib # Python 2
|
||||
except ImportError:
|
||||
import http.client as httplib
|
||||
import http.client as httplib # Python 3
|
||||
|
||||
import json
|
||||
import uuid
|
||||
|
|
|
|||
Loading…
Reference in a new issue