summaryrefslogtreecommitdiff
path: root/docs/howto/custom-model-fields.txt
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2017-06-26 16:30:31 +0200
committerTim Graham <timograham@gmail.com>2017-06-26 10:30:31 -0400
commit081e78716085ff4af08604af5d084c8fd27c0730 (patch)
tree369d3c9617c9d28631b089d77fd53c9fed0fac18 /docs/howto/custom-model-fields.txt
parentfba0eaa5d60603721d7b4653e3efacbfb3613bd2 (diff)
Refs #23919 -- Stopped inheriting from object to define new style classes.
Tests and docs complement to cecc079168e8669138728d31611ff3a1e7eb3a9f.
Diffstat (limited to 'docs/howto/custom-model-fields.txt')
-rw-r--r--docs/howto/custom-model-fields.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/howto/custom-model-fields.txt b/docs/howto/custom-model-fields.txt
index a64790b34c..d7ad9562a5 100644
--- a/docs/howto/custom-model-fields.txt
+++ b/docs/howto/custom-model-fields.txt
@@ -36,7 +36,7 @@ You only need to know that 52 cards are dealt out equally to four players, who
are traditionally called *north*, *east*, *south* and *west*. Our class looks
something like this::
- class Hand(object):
+ class Hand:
"""A hand of cards (bridge style)"""
def __init__(self, north, east, south, west):