Skip to content

Commit

Permalink
Support Python 3 HTTP imports
Browse files Browse the repository at this point in the history
  • Loading branch information
swalkinshaw committed Dec 2, 2018
1 parent 8259854 commit 29fbad3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion roles/letsencrypt/library/test_challenges.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
# -*- coding: utf-8 -*-

import socket
from httplib import HTTPConnection, HTTPException

try:
from httplib import HTTPConnection, HTTPException
except ImportError:
# Python 3
from http.client import HTTPConnection, HTTPException

DOCUMENTATION = '''
---
Expand Down

0 comments on commit 29fbad3

Please sign in to comment.