Skip to content

Commit

Permalink
Remove unneeded class inheritance from object
Browse files Browse the repository at this point in the history
  • Loading branch information
jhollowe committed Nov 27, 2022
1 parent 7819a2b commit b763cf2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions proxmoxer/backends/command_base.py
Expand Up @@ -29,7 +29,7 @@ def shell_join(args):
return " ".join([quote(arg) for arg in args])


class Response(object):
class Response:
def __init__(self, content, status_code):
self.status_code = status_code
self.content = content
Expand All @@ -40,7 +40,7 @@ def __str__(self):
return f"Response ({self.status_code}) {self.content}"


class CommandBaseSession(object):
class CommandBaseSession:
def __init__(
self,
service="PVE",
Expand Down Expand Up @@ -130,7 +130,7 @@ def upload_file_obj(self, file_obj, remote_path):
raise NotImplementedError()


class JsonSimpleSerializer(object):
class JsonSimpleSerializer:
def loads(self, response):
try:
return json.loads(response.content)
Expand All @@ -144,7 +144,7 @@ def loads_errors(self, response):
return {"errors": response.content}


class CommandBaseBackend(object):
class CommandBaseBackend:
def get_session(self):
return self.session

Expand Down
4 changes: 2 additions & 2 deletions proxmoxer/backends/https.py
Expand Up @@ -125,7 +125,7 @@ def __call__(self, req):
return req


class JsonSerializer(object):
class JsonSerializer:
content_types = [
"application/json",
"application/x-javascript",
Expand Down Expand Up @@ -245,7 +245,7 @@ def request(
)


class Backend(object):
class Backend:
def __init__(
self,
host,
Expand Down
2 changes: 1 addition & 1 deletion proxmoxer/core.py
Expand Up @@ -86,7 +86,7 @@ def __str__(self):
return self.msg


class ProxmoxResource(object):
class ProxmoxResource:
def __init__(self, **kwargs):
self._store = kwargs

Expand Down
2 changes: 1 addition & 1 deletion tests/test_core.py
Expand Up @@ -110,7 +110,7 @@ def test_call_list(self):
def test_call_stringable(self):
test_obj = core.ProxmoxResource(base_url=self.base_url)

class Thing(object):
class Thing:
def __str__(self):
return "string"

Expand Down

0 comments on commit b763cf2

Please sign in to comment.