diff --git a/openmrs.py b/openmrs.py index 20cc320c65a391c500df4ad736dc6adf7bdc1dad..0c4557ca084b6f3b329876312caa15519747a3ae 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