From 49adca8eba2df980289cd5966aae2a6c93a3accd Mon Sep 17 00:00:00 2001 From: Jed Reynolds Date: Fri, 10 Apr 2020 15:26:03 -0700 Subject: [PATCH] corrects locations found in comments --- py-json/LANforge/LFRequest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/py-json/LANforge/LFRequest.py b/py-json/LANforge/LFRequest.py index fb133ff5..1ff342e6 100644 --- a/py-json/LANforge/LFRequest.py +++ b/py-json/LANforge/LFRequest.py @@ -40,7 +40,7 @@ class LFRequest: headers=self.default_headers) else: request = urllib.request.Request(url=self.requested_url, headers=self.default_headers) - print("No data for this jsonPost?") + print("No data for this formPost?") request.headers['Content-type'] = 'application/x-www-form-urlencoded' resp = '' @@ -125,7 +125,7 @@ class LFRequest: return myresponses[0] except urllib.error.HTTPError as error: if (show_error): - print("----- jsonPost() HTTPError: --------------------------------------------") + print("----- get() HTTPError: --------------------------------------------") print("<%s> HTTP %s: %s"%(myrequest.get_full_url(), error.code, error.reason, )) print("Error: ", sys.exc_info()[0]) @@ -147,7 +147,7 @@ class LFRequest: print("------------------------------------------------------------------------") except urllib.error.URLError as uerror: if (show_error): - print("----- jsonPost() URLError: ---------------------------------------------") + print("----- get() URLError: ---------------------------------------------") print("Reason: %s; URL: %s"%(uerror.reason, myrequest.get_full_url())) print("------------------------------------------------------------------------") return None