From defaf45e9a7729da94b63a85e3d9a0f290c7e21c Mon Sep 17 00:00:00 2001 From: Jaap Roes Date: Thu, 16 Mar 2017 15:57:28 +0100 Subject: [PATCH] Make it clear why the httplib import is guarded by a try except and has a fallback --- sample_project/app/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sample_project/app/tests.py b/sample_project/app/tests.py index b640a90..87d74c1 100644 --- a/sample_project/app/tests.py +++ b/sample_project/app/tests.py @@ -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