From 434fc78f279c2f844e6ab9533cfabd595aba0a72 Mon Sep 17 00:00:00 2001 From: Brady James Garvin <bgarvin@cse.unl.edu> Date: Sun, 19 Jul 2020 11:15:25 -0500 Subject: [PATCH] Removed explicit superclasses that are unnecessary in Python 3. --- openmrs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openmrs.py b/openmrs.py index 20cc320..0c4557c 100644 --- a/openmrs.py +++ b/openmrs.py @@ -6,7 +6,7 @@ from kivy.clock import Clock from kivy.network.urlrequest import UrlRequest -class RESTConnection(object): +class RESTConnection: def __init__(self, authority, port, username, password): self.authority = authority self.port = port @@ -32,7 +32,7 @@ class RESTConnection(object): self.send_request_by_url(url, post_parameters, on_success, on_failure, on_error) -class RESTCommunication(object): +class RESTCommunication: def __init__(self, coroutine, rest_connection, on_failure): self.generator = coroutine(self) self.rest_connection = rest_connection -- GitLab