summaryrefslogtreecommitdiffstats
path: root/Doc/includes/sqlite3
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2010-11-22 03:09:19 (GMT)
committerÉric Araujo <merwok@netwok.org>2010-11-22 03:09:19 (GMT)
commit28053fb174cd548629b8c94cba02ce837aeb9e5b (patch)
treeb5450a4b4e121f3a9b649aa4f6e00a4dcbde88bf /Doc/includes/sqlite3
parentd4bbab278fc5021f5adbf4ae336e2754ca2037b3 (diff)
downloadcpython-28053fb174cd548629b8c94cba02ce837aeb9e5b.zip
cpython-28053fb174cd548629b8c94cba02ce837aeb9e5b.tar.gz
cpython-28053fb174cd548629b8c94cba02ce837aeb9e5b.tar.bz2
Remove unnecessary `object` base class in docs (#10366).
Also add a note about inheritance from `object` being default.
Diffstat (limited to 'Doc/includes/sqlite3')
-rw-r--r--Doc/includes/sqlite3/adapter_point_1.py2
-rw-r--r--Doc/includes/sqlite3/adapter_point_2.py2
-rw-r--r--Doc/includes/sqlite3/converter_point.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/Doc/includes/sqlite3/adapter_point_1.py b/Doc/includes/sqlite3/adapter_point_1.py
index 1343acd..6b1af84 100644
--- a/Doc/includes/sqlite3/adapter_point_1.py
+++ b/Doc/includes/sqlite3/adapter_point_1.py
@@ -1,6 +1,6 @@
import sqlite3
-class Point(object):
+class Point:
def __init__(self, x, y):
self.x, self.y = x, y
diff --git a/Doc/includes/sqlite3/adapter_point_2.py b/Doc/includes/sqlite3/adapter_point_2.py
index 1e1719a..d670700 100644
--- a/Doc/includes/sqlite3/adapter_point_2.py
+++ b/Doc/includes/sqlite3/adapter_point_2.py
@@ -1,6 +1,6 @@
import sqlite3
-class Point(object):
+class Point:
def __init__(self, x, y):
self.x, self.y = x, y
diff --git a/Doc/includes/sqlite3/converter_point.py b/Doc/includes/sqlite3/converter_point.py
index d0707ab..a8861bc 100644
--- a/Doc/includes/sqlite3/converter_point.py
+++ b/Doc/includes/sqlite3/converter_point.py
@@ -1,6 +1,6 @@
import sqlite3
-class Point(object):
+class Point:
def __init__(self, x, y):
self.x, self.y = x, y