summaryrefslogtreecommitdiff
path: root/poezio/windows
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-07-14 16:25:09 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-07-14 16:25:09 +0200
commit20ebea1c89a00187db390443ed284e0974ff7222 (patch)
treee276ce333272f8f6e3a74c054e99c4b3ff14c7ce /poezio/windows
parent3acfd83c243fe0ed0ec0b502aaabf46f9dd3aec3 (diff)
downloadpoezio-20ebea1c89a00187db390443ed284e0974ff7222.tar.gz
poezio-20ebea1c89a00187db390443ed284e0974ff7222.tar.bz2
poezio-20ebea1c89a00187db390443ed284e0974ff7222.tar.xz
poezio-20ebea1c89a00187db390443ed284e0974ff7222.zip
Stop making classes inherit from object.
Diffstat (limited to 'poezio/windows')
-rw-r--r--poezio/windows/base_wins.py4
-rw-r--r--poezio/windows/data_forms.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/poezio/windows/base_wins.py b/poezio/windows/base_wins.py
index b54a7b37..41f6a761 100644
--- a/poezio/windows/base_wins.py
+++ b/poezio/windows/base_wins.py
@@ -23,7 +23,7 @@ FORMAT_CHAR = '\x19'
format_chars = '\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x1A'
-class DummyWin(object):
+class DummyWin:
def __getattribute__(self, name):
if name != '__bool__':
return lambda *args, **kwargs: (0, 0)
@@ -34,7 +34,7 @@ class DummyWin(object):
return False
-class Win(object):
+class Win:
def __init__(self):
self._win = None
self.height, self.width = 0, 0
diff --git a/poezio/windows/data_forms.py b/poezio/windows/data_forms.py
index c600273e..d5ee29c5 100644
--- a/poezio/windows/data_forms.py
+++ b/poezio/windows/data_forms.py
@@ -13,7 +13,7 @@ from poezio.windows.inputs import Input
from poezio.theming import to_curses_attr, get_theme
-class FieldInput(object):
+class FieldInput:
"""
All input types in a data form should inherit this class,
in addition with windows.Input or any relevant class from the
@@ -345,7 +345,7 @@ class TextPrivateWin(TextSingleWin):
return 'Edit the secret text'
-class FormWin(object):
+class FormWin:
"""
A window, with some subwins (the various inputs).
On init, create all the subwins.