mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Py3: Remove subclassing from object
Python 2 had old style and new style classes. Python 3 has only new style classes. There is no point to subclass from object any more. See: https://pagure.io/freeipa/issue/7715 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
This commit is contained in:
@@ -491,7 +491,7 @@ def xml_loads(data, encoding='UTF-8'):
|
||||
raise decode_fault(e)
|
||||
|
||||
|
||||
class DummyParser(object):
|
||||
class DummyParser:
|
||||
def __init__(self):
|
||||
self.data = []
|
||||
|
||||
@@ -1203,7 +1203,7 @@ class xmlclient(RPCClient):
|
||||
return xml_unwrap(result)
|
||||
|
||||
|
||||
class JSONServerProxy(object):
|
||||
class JSONServerProxy:
|
||||
def __init__(self, uri, transport, encoding, verbose, allow_none):
|
||||
split_uri = urllib.parse.urlsplit(uri)
|
||||
if split_uri.scheme not in ("http", "https"):
|
||||
|
||||
Reference in New Issue
Block a user